svn commit: r290637 - head/lib/libc/locale

Andrey Chernov ache at freebsd.org
Tue Nov 10 12:54:22 UTC 2015


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/


More information about the svn-src-head mailing list