This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: outputting iso-8859-1 chars


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/


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