This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem setlocale in latest glibc and hope locale.alias


On 21 Oct, Roland McGrath wrote:
> You will have to gather some more information about your problem. 

Can you use setlocale(LC_ALL,your locale name) on your machine ?
Tst-C-locale test setlocale with only "C","POSIX".
If I set setlocale(LC_ALL,"C"),it returne is mot NULL,
but real result is blank.
locale isn't really set with "C","POSIX".

Kaoru
--------------------

[root@g4mpkfukui wk]# ./check_setlocale C    
(null)
OK
[root@g4mpkfukui wk]# locale
LANG=ja_JP.EUC-JP
LC_CTYPE="ja_JP.EUC-JP"
LC_NUMERIC="ja_JP.EUC-JP"
LC_TIME="ja_JP.EUC-JP"
LC_COLLATE="ja_JP.EUC-JP"
LC_MONETARY="ja_JP.EUC-JP"
LC_MESSAGES="ja_JP.EUC-JP"
LC_PAPER="ja_JP.EUC-JP"
LC_NAME="ja_JP.EUC-JP"
LC_ADDRESS="ja_JP.EUC-JP"
LC_TELEPHONE="ja_JP.EUC-JP"
LC_MEASUREMENT="ja_JP.EUC-JP"
LC_IDENTIFICATION="ja_JP.EUC-JP"
LC_ALL=                              <<<---------------- nothing
[root@g4mpkfukui wk]# ./check_setlocale POSIX
(null)
OK
[root@g4mpkfukui wk]# locale
LANG=ja_JP.EUC-JP
LC_CTYPE="ja_JP.EUC-JP"
LC_NUMERIC="ja_JP.EUC-JP"
LC_TIME="ja_JP.EUC-JP"
LC_COLLATE="ja_JP.EUC-JP"
LC_MONETARY="ja_JP.EUC-JP"
LC_MESSAGES="ja_JP.EUC-JP"
LC_PAPER="ja_JP.EUC-JP"
LC_NAME="ja_JP.EUC-JP"
LC_ADDRESS="ja_JP.EUC-JP"
LC_TELEPHONE="ja_JP.EUC-JP"
LC_MEASUREMENT="ja_JP.EUC-JP"
LC_IDENTIFICATION="ja_JP.EUC-JP"
LC_ALL=                           <<<--------- nothing
[root@g4mpkfukui wk]# 






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]