This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Fwd: Patch for Recovery from Bad Multibyte Characters]
- To: Jason Merrill <jason at cygnus dot com>
- Subject: Re: [Fwd: Patch for Recovery from Bad Multibyte Characters]
- From: Dave Brolley <brolley at cygnus dot com>
- Date: Tue, 01 Jun 1999 11:27:55 -0400
- CC: law at cygnus dot com, egcs-patches at egcs dot cygnus dot com
- Organization: Cygnus Solutions Canada Ltd
- References: <2672.928223253@upchuck.cygnus.com> <u97lpoqrjx.fsf@yorick.cygnus.com>
Jason Merrill wrote:
> Contrary to what Dave says, this problem occurs with any code that uses
> high-ASCII values if gcc is configured with --enable-c-mbchar. It doesn't
> depend on the value of LANG at all.
In the absence of one of the magic LANG settings, the implementation uses
mblen and mbtowc as defined by the host locale (when configured with
--enable-c-mbchar). It is possible that some locales support other multibyte
character sets than JIS, SJIS and EUCJP.
Dave