Input charsets - What's going on?
Zack Weinberg
zack@codesourcery.com
Wed May 19 21:13:00 GMT 2004
"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
More information about the Gcc
mailing list