Author: bapt Date: Mon Nov 9 22:29:47 2015 New Revision: 290622 URL: https://svnweb.freebsd.org/changeset/base/290622
Log: 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 Modified: head/lib/libc/locale/nl_langinfo.c Modified: head/lib/libc/locale/nl_langinfo.c ============================================================================== --- head/lib/libc/locale/nl_langinfo.c Mon Nov 9 22:12:29 2015 (r290621) +++ head/lib/libc/locale/nl_langinfo.c Mon Nov 9 22:29:47 2015 (r290622) @@ -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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"