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> setlocale (LC_CTYPE, ""); 
Zack> cset = nl_langinfo (CODESET);

Zack> might give you what you want.  nl_langinfo is in <langinfo.h>.

Do you mean _NL_CTYPE_CODESET_NAME?  That is in my langinfo.h, but it
isn't documented in my glibc info manual.

Anyway, thanks.  I'll update my patch to do this.

Zack> I think there ought to be a way to specify the encoding of a
Zack> file *inside* the file.  How does Mule do it?

I don't know how Mule does it.  For Java this would have to be in a
special comment or something like that.  Even then I don't see how it
can work unless you pick a default encoding, like ASCII.

Tom

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