This is the mail archive of the
mailing list for the glibc project.
Re: The behavor of printing out libc message catalog without calling setlocale()
- To: Chiaki Ishikawa <Chiaki dot Ishikawa at personal-media dot co dot jp>
- Subject: Re: The behavor of printing out libc message catalog without calling setlocale()
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 08 Nov 2000 00:10:47 -0800
- Cc: libc-alpha at sourceware dot cygnus dot com
- References: <200011080657.PAA29530@sparc18.personal-media.co.jp>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Chiaki Ishikawa <Chiaki.Ishikawa@personal-media.co.jp> writes:
> Has this loophole been documented in a clearly visible manner in the
> glibc documentation?
The effect of LANGUAGE is documented. Since there is no locale
category with this name it is obvious that the environment variable
has the effect of selecting the translation.
> This loophole saves the transition in a way, but also gives the
> programming community excuses not to insert necessary setlocale()
> calls in the favorite programs any time soon.
Not really. Since the character set is not set appropriately the
messages will be garbled for most languages.
> I wonder how people evaluate the the merit and demerit of this
It cannot go away since it's implementing something you cannot do the
the other environment variables.
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------