diff options
author | ache <ache@FreeBSD.org> | 2001-06-10 23:22:31 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-06-10 23:22:31 +0000 |
commit | 72ffa91a6bdbfa4ecbe6095f2ac5e14395a8fc69 (patch) | |
tree | a9c649c696635598f925821e8471678e06845ee3 /lib/libc | |
parent | d477cc66c413848914df74d593458aafe11b0da9 (diff) | |
download | FreeBSD-src-72ffa91a6bdbfa4ecbe6095f2ac5e14395a8fc69.zip FreeBSD-src-72ffa91a6bdbfa4ecbe6095f2ac5e14395a8fc69.tar.gz |
Handle "ASCII" and "US-ASCII" aliases
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/locale/nl_langinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/locale/nl_langinfo.c b/lib/libc/locale/nl_langinfo.c index ae1512b..fd15eb2 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; |