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: Takahiro Kambe <taca%back-street.net@localhost>
To: takehiko.nozaki%gmail.com@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:40:19 +0900 (JST)
Hi,
In message
<2fe63cf90909260020j67fcb7fbm31bc58170cc02a2d%mail.gmail.com@localhost>
on Sat, 26 Sep 2009 16:20:07 +0900,
Takehiko NOZAKI <takehiko.nozaki%gmail.com@localhost> wrote:
> 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
I see.
> or we have to add alias ja -> ja_JP.eucJP?
I don't think so.
> so please use LANG=ja_JP.eucJP instead of LANG=ja.
Thanks. Here is one more result.
--------------+----------------------------------------------------------------
LANG |
environment | return value of setlocale()
--------------+----------------------------------------------------------------
not defined | "C"
--------------+----------------------------------------------------------------
"ja_JP" | NULL
--------------+----------------------------------------------------------------
"ja_JP.eucJP" | "C/ja_JP.eucJP/ja_JP.eucJP/ja_JP.eucJP/ja_JP.eucJP/ja_JP.eucJP"
--------------+----------------------------------------------------------------
"ja_JP.utf-8" | "C/ja_JP.utf-8/C/C/C/ja_JP.utf-8"
--------------+----------------------------------------------------------------
--
Takahiro Kambe <taca%back-street.net@localhost>
Home |
Main Index |
Thread Index |
Old Index