Subject: Re: -current setlocale() problems
To: None <>
From: Jaromír Dolecek <>
List: current-users
Date: 12/24/2000 10:11:04
Geoff Wing wrote:
>         printf("%s\n", setlocale(LC_ALL, ""));
>         printf("%s\n", setlocale(LC_ALL, NULL));

> OK, now the first line should be "(null)" and the second should be "C",
> right?  What is this stuff being spewed out?  Why did the locale change
> succeed?

AFAIK first sets environment to "native" one. If LANG nor LC_ALL
is set, this means "C". So the result you've got is correct AFAICS.

If LANG/LC_ALL is set to some bogus value and it still succeeds,
it's an error. Itojun made couple of fixes to LC_CTYPE loading
so that it returns failure as appropriate, you might want to update
to up-to-date sources and try again.

Jaromir Dolecek <>
@@@@  Wanna a real operating system ? Go and get NetBSD, dammit!  @@@@