return "US-ASCII" instead of "POSIX" for "C" and "POSIX" locales

as it used to be in previous version of the locales. Returning
"POSIX" has too many fallouts.
This commit is contained in:
bapt 2015-11-10 08:11:27 +00:00
parent 6394d446ad
commit 883271972d

View File

@ -71,7 +71,7 @@ nl_langinfo_l(nl_item item, locale_t loc)
else if (strcmp(s, "MSKanji") == 0)
ret = "SJIS";
else if (strcmp(s, "NONE") == 0)
ret = "POSIX";
ret = "US-ASCII";
else if (strncmp(s, "NONE:", 5) == 0)
ret = (char *)(s + 5);
else