diff options
author | bapt <bapt@FreeBSD.org> | 2015-11-09 22:29:47 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-11-09 22:29:47 +0000 |
commit | ea0a81f9533c94383f9458fa33880672cbb5a48e (patch) | |
tree | f8c6b62bc6f4c7b14dd755f7e36d5d74be4e8531 | |
parent | a1b15c33fcbcb66a6cc2314c69cf0830dae0f38b (diff) | |
download | FreeBSD-src-ea0a81f9533c94383f9458fa33880672cbb5a48e.zip FreeBSD-src-ea0a81f9533c94383f9458fa33880672cbb5a48e.tar.gz |
nl_langinfo: Simplify case ladder
The NONE:US-ASCII case isn't necessary. The "NONE:" case will handle
US-ASCII, so let's remove the redundant handling.
Submitted by: marino
Obtained from: DragonflyBSD
-rw-r--r-- | lib/libc/locale/nl_langinfo.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/locale/nl_langinfo.c b/lib/libc/locale/nl_langinfo.c index eeba8c3..4136faa 100644 --- a/lib/libc/locale/nl_langinfo.c +++ b/lib/libc/locale/nl_langinfo.c @@ -72,8 +72,6 @@ nl_langinfo_l(nl_item item, locale_t loc) ret = "SJIS"; else if (strcmp(s, "NONE") == 0) ret = "POSIX"; - else if (strcmp(s, "NONE:US-ASCII") == 0) - ret = "US-ASCII"; else if (strncmp(s, "NONE:", 5) == 0) ret = (char *)(s + 5); else |