Patch: gcj -vs- iconv
Tom Tromey
tromey@cygnus.com
Mon Mar 6 15:07:00 GMT 2000
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
More information about the Gcc-patches
mailing list