This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: how to get System.out.println("\u7B80\u4F53\u4E2D\u6587") work(on win32)?
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: tromey at redhat dot com
- Cc: java at gcc dot gnu dot org, Mohan Embar <gnustuff at thisiscool dot com>, lanewu at hotmail dot com
- Date: Mon, 08 Nov 2004 11:46:44 +0530
- Subject: Re: how to get System.out.println("\u7B80\u4F53\u4E2D\u6587") work(on win32)?
- References: <BAY24-DAV10yCKDkb9p00000444@hotmail.com> <m3zn1w3wtl.fsf@localhost.localdomain>
Tom Tromey wrote:
>
>>>it seems that GCJ is still using non-unicode based?
>>>sorry if this is a FAQ, I'm new here.
>
>
> I'm sorry that nobody answered this. I'm not a Windows person, so I
> don't know the answer.
I'm no longer a Windows person, but I hope the
following answer helps. :-/
Wu, you need to make sure that you configure GCC/GCJ
for Win32 with "--with-win32-nlsapi=unicode" (or
unicows if you wish to support Win9x/ME too). That is,
pass "--with-win32-nlsapi=unicode" along with the other
flags you pass to "configure".
The relevant patch was:
http://gcc.gnu.org/ml/java-patches/2003-q4/msg00605.html
The default is "ansi".
I see that Mohan's pre-built binaries are configured with
"--enable-libgcj-mingw-osapi=ansi", which does not seem to
be a supported flag in the FSF sources. Mohan, do you have
a private patch for this flag?
Hope this helps,
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/