Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Nov 2015 22:29:47 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r290622 - head/lib/libc/locale
Message-ID:  <201511092229.tA9MTltq066122@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511092229.tA9MTltq066122>