1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Handle "ASCII" and "US-ASCII" aliases

This commit is contained in:
Andrey A. Chernov 2001-06-10 23:22:31 +00:00
parent 1d6286d833
commit 75d03a7f04
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78024

View File

@ -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;