···12911291 // We'll use current locale (NULL) instead of the global locale.
12921292 if (base == LC_GLOBAL_LOCALE)
12931293 base = NULL;
12941294+ // It seems the following 5 locales are the same as "C" for Mac.
12951295+ if (!strcmp(locale, "en_US") ||
12961296+ !strcmp(locale, "en_US.ISO8859-1") ||
12971297+ !strcmp(locale, "en_US.ISO8859-15") ||
12981298+ !strcmp(locale, "en_US.US-ASCII") ||
12991299+ !strcmp(locale, "en_US.UTF-8"))
13001300+ locale = "C";
12941301 return newlocale(linux_category_mask, locale, base);
12951302}
12961303