public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/14460] New: --enable-c-mbchar will not work
@ 2004-03-06 17:24 kutara at sayuri dot ne dot jp
  2004-03-06 18:20 ` [Bug preprocessor/14460] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: kutara at sayuri dot ne dot jp @ 2004-03-06 17:24 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-14460-8083@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2006-12-28 19:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-06 17:24 [Bug preprocessor/14460] New: --enable-c-mbchar will not work kutara at sayuri dot ne dot jp
2004-03-06 18:20 ` [Bug preprocessor/14460] " pinskia at gcc dot gnu dot org
2004-03-06 23:46 ` zack at gcc dot gnu dot org
2005-04-21 10:37 ` jsm28 at gcc dot gnu dot org
     [not found] <bug-14460-8083@http.gcc.gnu.org/bugzilla/>
2006-12-28  4:49 ` tromey at gcc dot gnu dot org
2006-12-28 19:12 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).