This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: i18n support
- To: Zack Weinberg <zack at rabi dot columbia dot edu>
- Subject: Re: i18n support
- From: Jeffrey A Law <law at hurl dot cygnus dot com>
- Date: Sat, 30 Jan 1999 11:37:49 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199901301835.NAA16156@blastula.phys.columbia.edu>you write:
> If we #if out just the setlocale call, it will disable translation
> (since we'll be left in "C" locale by default).
Right. I understand that. I just don't know if it is otherwise safe. My
experience with locale & i18n is somewhere between zero and none.
> bindtextdomain/textdomain don't look at the locale, so that would be
> safe, unless there's another setlocale() call in the program
> program...?
All that box has is:
#define LC_ALL 0
#define LC_COLLATE 1
#define LC_CTYPE 2
#define LC_MONETARY 3
#define LC_NUMERIC 4
#define LC_TIME 5
#define _LC_LAST 6 /* marks end */
There shouldn't be any other setlocales in the effected code -- each of the
major programs (gcc, cccp, collect2, cc1*, etc) call setlocale once as they
start up and that's it.
jeff