This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/14460] New: --enable-c-mbchar will not work
- From: "kutara at sayuri dot ne dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Mar 2004 17:24:20 -0000
- Subject: [Bug preprocessor/14460] New: --enable-c-mbchar will not work
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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