aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-06-10 23:22:31 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-06-10 23:22:31 +0000
commit75d03a7f04080d3026623d28a7261a1e01d09777 (patch)
treea9c649c696635598f925821e8471678e06845ee3 /lib/libc
parent1d6286d833a886753ca8163b8eed8f301a52c733 (diff)
downloadsrc-75d03a7f04080d3026623d28a7261a1e01d09777.tar.gz
src-75d03a7f04080d3026623d28a7261a1e01d09777.zip
Handle "ASCII" and "US-ASCII" aliases
Notes
Notes: svn path=/head/; revision=78024
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/locale/nl_langinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/locale/nl_langinfo.c b/lib/libc/locale/nl_langinfo.c
index ae1512bac4b1..fd15eb2279f1 100644
--- a/lib/libc/locale/nl_langinfo.c
+++ b/lib/libc/locale/nl_langinfo.c
@@ -51,7 +51,8 @@ nl_langinfo(nl_item item) {
if ((cs = strchr(s, '.')) != NULL)
ret = cs + 1;
else if (strcmp(s, "C") == 0 ||
- strcmp(s, "POSIX") == 0)
+ strcmp(s, "POSIX") == 0 ||
+ strstr(s, "ASCII") != NULL)
ret = "US-ASCII";
}
break;