From 72ffa91a6bdbfa4ecbe6095f2ac5e14395a8fc69 Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 10 Jun 2001 23:22:31 +0000 Subject: Handle "ASCII" and "US-ASCII" aliases --- lib/libc/locale/nl_langinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc') 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; -- cgit v1.1