This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: outputting iso-8859-1 chars
- From: Morten Poulsen <morten at afdelingp dot dk>
- To: tromey at redhat dot com
- Cc: Oskar Liljeblad <oskar at osk dot mine dot nu>, java at gcc dot gnu dot org
- Date: 01 May 2002 13:09:00 +0200
- Subject: Re: outputting iso-8859-1 chars
- References: <1019683994.8904.26.camel@marvin><874ri066pw.fsf@creche.redhat.com> <1019723168.14529.17.camel@prefect><20020425100322.GA29174@oskar> <1019731762.14529.37.camel@prefect> <87it6adzn5.fsf@creche.redhat.com>
On Mon, 2002-04-29 at 22:21, Tom Tromey wrote:
> If this program doesn't print ISO-8859-1 (or some alias) when
> LC_CTYPE=en_GB, then I think the problem is in your libc. Otherwise
> maybe the problem is in libjava; you'd have to do some debugging to
> figure out what is going wrong.
Oskar Liljeblad gave me a hint about setting up locales correctly.
$ ./a.out
ANSI_X3.4-1968
$ LC_CTYPE=en_GB ./a.out
ISO-8859-1
$ ./hello
xxx?xxx
$ LC_CTYPE=en_GB ./hello
xxxåxxx
Thanks for the help,
Morten
--
Morten Poulsen <morten@afdelingp.dk>
http://www.afdelingp.dk/