diff options
author | bapt <bapt@FreeBSD.org> | 2015-11-10 08:11:27 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-11-10 08:11:27 +0000 |
commit | 883271972d24bf72cdbd2455dd1bb09349fe2b80 (patch) | |
tree | 0f928b44c4feb5dd7599e4430dc7503f7bbd8e82 /lib | |
parent | 6394d446ad0b881e8dfe3cc1cd451538f2aa7ff9 (diff) | |
download | FreeBSD-src-883271972d24bf72cdbd2455dd1bb09349fe2b80.zip FreeBSD-src-883271972d24bf72cdbd2455dd1bb09349fe2b80.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/locale/nl_langinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/nl_langinfo.c b/lib/libc/locale/nl_langinfo.c index 4136faa..e3b370a 100644 --- a/lib/libc/locale/nl_langinfo.c +++ b/lib/libc/locale/nl_langinfo.c @@ -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 |