This is the mail archive of the
mailing list for the glibc project.
Re: LC_MESSAGES problem ?
On Mon, Nov 20, 2000 at 10:00:42AM -0800, Paul Eggert wrote:
> > Date: Tue, 21 Nov 2000 02:32:09 +0900
> > From: Won-kyu Park <firstname.lastname@example.org>
> > setlocale(LC_CTYPE,"C");
> > setlocale(LC_MESSAGES,"");
> Code like that has never been portable. POSIX says that if different
> locale categories use different character sets or codesets, the result
> is undefined.
> Most GNU applications use setlocale (LC_ALL, "") or avoid setlocale
> entirely. For these applications the problem should arise only if the
> user specifies incompatible locale categories in the environment, but
> in general glibc can't fix screwups like that, and I don't think it
> should try.
> > There are many programs using setlocale(LC_MESSAES,"") only.
> > (the gcc also)
> Ah yes, GCC. GCC 2.95.2 has that problem if you configure it with the
> non-default --enable-nls option. Sorry about that. I introduced the
> problem when I added the NLS option to GCC.
> GCC ought to get fixed. That was on my to-do list a while ago, but I
> ran out of time to fix it (sorry, I have only so much volunteer time).
> In the meantime, to work around the problem, don't specify
> --enable-nls when configuring GCC.
Verrry thanks :-)
> Are there any applications other than GCC ?
people say so in the Korean LUG, but I don't know :-)