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; 4+ 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] 4+ messages in thread

* [Bug preprocessor/14460] --enable-c-mbchar will not work
  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 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-06 18:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-06 18:20 -------
I think this is all fixed in 3.4.0, can you try a snapshot of 3.4.0?

-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug preprocessor/14460] --enable-c-mbchar will not work
  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
  2 siblings, 0 replies; 4+ messages in thread
From: zack at gcc dot gnu dot org @ 2004-03-06 23:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From zack at gcc dot gnu dot org  2004-03-06 23:46 -------
3.4.0 has substantial improvements, but I do not know yet whether it works for
real-world Japanese locales.  If you can test it that would be much appreciated.

-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug preprocessor/14460] --enable-c-mbchar will not work
  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
  2 siblings, 0 replies; 4+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-04-21 10:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jsm28 at gcc dot gnu dot org  2005-04-21 10:36 -------
--enable-c-mbchar was removed with

revision 1.14
date: 2003/07/06 18:50:44;  author: neil;  state: dead;  lines: +0 -0
        * Makfile.in: Remove traces of mbchar.
        * c-parse.in (MULTIBYTE_CHARS): Remove.
        * config.in (MULTIBYTE_CHARS): Remove.
        * configure: Remove --enable-mbchar.
        * configure.in: Remove --enable-mbchar.
        * mbchar.c, mbchar.h: Remove.
        * system.h: Poison MULTIBYTE_CHARS.
        * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
        * config/linux.h (MULTIBYTE_CHARS): Remove.
        * config/svr4.h (MULTIBYTE_CHARS): Remove.
        * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.


-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-04-21 10:37 UTC | newest]

Thread overview: 4+ 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

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).