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]
>>>>> Dave Brolley <brolley@cygnus.com> writes:
> 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.
All I know is that it breaks in nightly testing, when no LANG is set.
Jason