aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/locale
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-11-10 08:11:27 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-11-10 08:11:27 +0000
commit87101cb572686db00aaf78c66f31c403d2ee2981 (patch)
tree0f928b44c4feb5dd7599e4430dc7503f7bbd8e82 /lib/libc/locale
parent00cc2faabb1aa21d7fc0c753e04c55c1d4c2f132 (diff)
downloadsrc-87101cb572686db00aaf78c66f31c403d2ee2981.tar.gz
src-87101cb572686db00aaf78c66f31c403d2ee2981.zip
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.
Notes
Notes: svn path=/head/; revision=290637
Diffstat (limited to 'lib/libc/locale')
-rw-r--r--lib/libc/locale/nl_langinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/nl_langinfo.c b/lib/libc/locale/nl_langinfo.c
index 4136faa06d78..e3b370ae2b5f 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