This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: gcj -vs- iconv
- To: Zack Weinberg <zack at wolery dot cumb dot org>
- Subject: Re: Patch: gcj -vs- iconv
- From: Tom Tromey <tromey at cygnus dot com>
- Date: Mon, 6 Mar 2000 15:07:45 -0800 (PST)
- Cc: Tom Tromey <tromey at cygnus dot com>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- References: <87zosb7p8q.fsf@cygnus.com><20000306145559.M1350@wolery.cumb.org>
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