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: gnats-bugs%NetBSD.org@localhost, takehiko.nozaki%gmail.com@localhost
Cc: 
Subject: Re: lib/42124: setlocale(3) never returns NULL with none existing
 locale.
Date: Sat, 26 Sep 2009 14:01:12 +0900 (JST)

 Hi,
 
 I applied the patch on NetBSD current (5.99.18).
 
 --------------+----------------------------------------------------------------
     LANG      |
 environment   | return value of setlocale()
 --------------+----------------------------------------------------------------
 not defined   | "C"
 --------------+----------------------------------------------------------------
 "ja"          | NULL
 --------------+----------------------------------------------------------------
 "ja_JP"       | NULL
 --------------+----------------------------------------------------------------
 "ja_JP.eucJP" | "C/ja_JP.eucJP/ja_JP.eucJP/ja_JP.eucJP/ja_JP.eucJP/ja_JP.eucJP"
 --------------+----------------------------------------------------------------
 
 The result on 4.0_STABLE:
 
 --------------+----------------------------------------------------------------
     LANG      |
 environment   | return value of setlocale()
 --------------+----------------------------------------------------------------
 not defined   | "C"
 --------------+----------------------------------------------------------------
 "ja"          | "C/C/C/C/C/ja"
 --------------+----------------------------------------------------------------
 "ja_JP"       | NULL
 --------------+----------------------------------------------------------------
 "ja_JP.eucJP" | "C/ja_JP.eucJP/C/C/C/ja_JP.eucJP"
 --------------+----------------------------------------------------------------
 
 Return value of setlocale(3) itself depends on system, but I think
 that setlocale(3) should not return NULL when LANG is "ja".
 
 Anyway, there should be such test case to src/regress or src/tests?
 
 Best regards.
 
 -- 
 Takahiro Kambe <taca%back-street.net@localhost>
 


Home | Main Index | Thread Index | Old Index