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: law at cygnus dot com
- Subject: Re: [Fwd: Patch for Recovery from Bad Multibyte Characters]
- From: Jason Merrill <jason at cygnus dot com>
- Date: 01 Jun 1999 01:00:02 -0700
- Cc: Dave Brolley <brolley at cygnus dot com>, egcs-patches at egcs dot cygnus dot com
- References: <2672.928223253@upchuck.cygnus.com>
>>>>> Jeffrey A Law <law@cygnus.com> writes:
> In message <3752D581.C2ED469B@cygnus.com>you write:
>> This patch correct a problem in the C and C++ compilers in which the
>> compiler sometimes misses the end of a string or character literal
>> while attempting to complete a multibyte character. It replaces all
>> but the first character back into the input stream. In order to do
>> this, I had to add the capability to put back more than one character
>> to both the C and C++ front ends. I was careful to make sure that the
>> overhead to sub_getch is still the same as before for the case where
>> no character is in the buffer.
> Well, you know more about this code than anyone else. If you're happy
> with it, I see no reason to object.
> I don't think SJIS bugs are critical for the gcc-2.95 release, so
> installing it into just the mainline sources ought to be OK.
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.
Jason