This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Input charsets - What's going on?
"Joseph S. Myers" <jsm@polyomino.org.uk> writes:
> On Wed, 19 May 2004, Zack Weinberg wrote:
>
>> > Is the feature broken by design?
>>
>> The feature is indeed broken by design (for precisely this reason);
>> however, it is in SUS so we're stuck with it.
>
> Allowing conversion failures if they occur within comments (possibly with
> a warning for them), skipping any unconvertible bytes, might help, but I
> don't know how feasible this is.
I don't think it's feasible with the current implementation (the
converter is not aware of comment boundaries) and it would introduce a
risk of mistaking where the comment ends (q.v. the infamous
SJIS-in-//-comment example).
zw