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: how to get System.out.println("\u7B80\u4F53\u4E2D\u6587") work(on win32)?


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/


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