LC_MESSAGES problem ?
Philipp Thomas
pthomas@suse.de
Sat Nov 25 10:40:00 GMT 2000
* Paul Eggert (eggert@twinsun.com) [20001120 19:01] on libc-alpha:
> 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.
--enable-nls now *is* the default for anything other then canadian cross.
> 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).
So
#ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, "");
#endif
should be changed to unconditionally use setlocale (LC_ALL, "")? IMHO this
would require carefull review of the GCC code to see that nothing breaks
because of changing collation rules etc.
But as GCC does seem to need a fix, I can do it easily as I now maintain the
i18n specific parts of gcc.
BTW, that's also the reason why I pushed for the inclusion of your and
Martin v. Loewis patches to gettext to go into the official version ( and
because Bruno Haible is comaintainer of gettext I actually succeeded :).
> In the meantime, to work around the problem, don't specify enable-nls when
> --configuring GCC.
JFI, at least for the CVS versions of gcc you nowadays have to specify
--disable-nls to not use it.
Philipp
--
Penguins shall save the dinosaurs
-- Handelsblatt about Linux on S/390
More information about the Gcc-bugs
mailing list