Debugging HelloWorld program
Wed Oct 11 17:57:00 GMT 2000

Hi!  THAT WORKED!!!!!  When I compiled with "-Dfile.encoding=UTF-8"
specified my HelloWorld program run perfectly!

Thanks!  Is it a bad thing that the "LANG" environment variable didn't




Tom Tromey <> on 10/11/2000 05:27:32 PM

Please respond to


Subject:  Re: Debugging HelloWorld program

>>>>> "Tom" == Tom Williams <> writes:

Tom> Hi!  Thanks again for the info!  This is the VERY first time I've
Tom> ever used gdb so please excuse my ignorance.  I switched to the
Tom> "desired" thread and ran the "bt" command.  It looks like the
Tom> time is being spent in __gconv_transform_ucs2_internal.  I also
Tom> see the letter "e" in part of that stack trace line so I guess
Tom> the letter "e" in "Hello World" is being converted or something.

This looks like the failure I was seeing.
My fix was setting LANG=en_US.UTF-8.
However, you already reported that that doesn't work for you.
Try setting the `file.encoding' property to UTF-8 instead.

You can do this at link time like so:

    gcj --main=... -Dfile.encoding=UTF-8 ...


More information about the Java mailing list