NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/42124: setlocale(3) never returns NULL with none existing locale.



The following reply was made to PR lib/42124; it has been noted by GNATS.

From: Takehiko NOZAKI <takehiko.nozaki%gmail.com@localhost>
To: Takahiro Kambe <taca%back-street.net@localhost>
Cc: gnats-bugs%netbsd.org@localhost
Subject: Re: lib/42124: setlocale(3) never returns NULL with none existing 
        locale.
Date: Sat, 26 Sep 2009 16:20:07 +0900

 hi,
 
 NetBSD-4.0 LC_MESSAGES's behavior is just the kludge.
 see following XXX comment:
 
http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/locale/setlocale.c.diff?r1=1.36&r2=1.37
 
 
 or we have to add alias ja -> ja_JP.eucJP?
 
     /usr/share/locale/locale.alias
     ja        ja_JP.eucJP
 
 BTW, gettext doesn' require this alias, it seek the message catalog
 following order:
     ja_JP.eucJP -> ja_JP -> ja
 
 so please use LANG=ja_JP.eucJP instead of LANG=ja.
 
 
 very truly yours.
 -- 
 Takehiko NOZAKI<takehiko.nozaki%gmail.com@localhost>
 


Home | Main Index | Thread Index | Old Index