This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: i18n support



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]