This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: gcj -vs- iconv


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]