Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Nov 2015 15:48:52 +0300
From:      Andrey Chernov <ache@freebsd.org>
To:        Baptiste Daroussin <bapt@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r290637 - head/lib/libc/locale
Message-ID:  <5641E7B4.2070508@freebsd.org>
In-Reply-To: <201511100811.tAA8BR0R034338@repo.freebsd.org>
References:  <201511100811.tAA8BR0R034338@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10.11.2015 11:11, Baptiste Daroussin wrote:
> Author: bapt
> Date: Tue Nov 10 08:11:27 2015
> New Revision: 290637
> URL: https://svnweb.freebsd.org/changeset/base/290637
> 
> Log:
>   return "US-ASCII" instead of "POSIX" for "C" and "POSIX" locales
>   as it used to be in previous version of the locales. Returning
>   "POSIX" has too many fallouts.

You can return "ANSI_X3.4-1968" (another name of "US-ASCII") to be
different with real US-ASCII. It is what glibc returns for C/POSIX
locale and most ports expected, being linux-oriented.

> 
> Modified:
>   head/lib/libc/locale/nl_langinfo.c
> 
> Modified: head/lib/libc/locale/nl_langinfo.c
> ==============================================================================
> --- head/lib/libc/locale/nl_langinfo.c	Tue Nov 10 07:32:49 2015	(r290636)
> +++ head/lib/libc/locale/nl_langinfo.c	Tue Nov 10 08:11:27 2015	(r290637)
> @@ -71,7 +71,7 @@ nl_langinfo_l(nl_item item, locale_t loc
>  		else if (strcmp(s, "MSKanji") == 0)
>  			ret = "SJIS";
>  		else if (strcmp(s, "NONE") == 0)
> -			ret = "POSIX";
> +			ret = "US-ASCII";
>  		else if (strncmp(s, "NONE:", 5) == 0)
>  			ret = (char *)(s + 5);
>  		else
> 


-- 
http://ache.vniz.net/



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