This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug preprocessor/14460] New: --enable-c-mbchar will not work


At mbchar.c, local_mbtowc() compare with a variable 'literal_codeset' to "C-
SJIS", "C-JIS" or "C-EUCJP".

The variable 'literal_codeset' is initialized at c-lex.c/init_c_lex() like this:
>  GET_ENVIRONMENT (literal_codeset, "LANG");

But proper format of the environment 'LANG' 
is "C", "ja", "ja_JP", "ja_JP.eucjp", and so on. It's depend on OS. See output 
of command "locale -a".

So the comparison at local_mbtowc() will be failed.

-- 
           Summary: --enable-c-mbchar will not work
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kutara at sayuri dot ne dot jp
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14460


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