[Bug preprocessor/14460] New: --enable-c-mbchar will not work
kutara at sayuri dot ne dot jp
gcc-bugzilla@gcc.gnu.org
Sat Mar 6 17:24:00 GMT 2004
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
More information about the Gcc-bugs
mailing list