Patch: gcj -vs- iconv
Per Bothner
per@bothner.com
Mon Mar 6 18:56:00 GMT 2000
Zack Weinberg <zack@wolery.cumb.org> writes:
> Mule extends the standard Emacs magic comment.
>
> /* -*- mode: java; coding: latin-1 -*- */
>
> would force it to treat the file as ISO8859.1. Of course, you need to
> map those names to iconv names...
The XML spec has an appendix that may not be directly helpful,
but is interesting anyway:
http://www.w3.org/TR/1998/REC-xml-19980210#sec-guessing
I agree it would be nice to process the Emacs magic comments,
and use that to switch from a default encoding. We (and Emacs)
should recognize the same encoding names specified for XML:
http://www.w3.org/TR/1998/REC-xml-19980210#NT-EncodingDecl
Again, an item for the wishlist, as a small project it would be
nice for someone (else) to try.
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/
More information about the Gcc-patches
mailing list