locale not supported by C library, locale unchanged (What does it mean?)

locale not supported by C library, locale unchanged (What does it mean?)

Post by Chung Chiew Fa » Tue, 23 Sep 1997 04:00:00



Hi, I keep getting these kind of warnings for some programs that I run under X:


Warning: locale not supported by C library, locale unchanged  <==== ******

Warning: locale not supported by C library, locale unchanged

What does it mean by locale not supported? And what kind of changes do
I have to make to prevent these messages from popping up? Are the effects
of "locale not supported" minor if I run the programs anyway?

Thanks a lot for you help. If you could please cc an email reply to me too,
just in case I miss the posting.

Sincerely,
Chiew Farn Chung. :)

 
 
 

locale not supported by C library, locale unchanged (What does it mean?)

Post by Kaleb S. KEITHLE » Tue, 23 Sep 1997 04:00:00



> I keep getting these kind of warnings for some programs that I run under X:


> Warning: locale not supported by C library, locale unchanged  <==== ******

> Warning: locale not supported by C library, locale unchanged

> What does it mean by locale not supported?

Pretty much what it says. If you've set your LANG environment variable
(or the XlcNLanguage resource) to "foozle" and libc doesn't have support
for the "foozle" locale, Xt's default language procedure will emit that
warning.

Quote:> And what kind of changes do
> I have to make to prevent these messages from popping up?

Set you LANG environment variable to something that your libc actually
supports, or fix your libc/locale database. Note that most Linux
distributions have pretty lame locale support "out of the box."

Quote:> Are the effects
> of "locale not supported" minor if I run the programs anyway?

It depends on what you consider to be minor. The program will run in the
C locale (ANSI/ISO/POSIX C says that the program starts in the C locale
until it is changes with setlocale(3)) and therefore X will run in the C
locale. If you're using kterm because you want to read/write Chinese
text, you won't be able to in the C locale.

--

Kaleb S. KEITHLEY