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)?


Hi All,

>>>>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. :-/

...

>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?


Sorry I didn't notice this one. Yes, passing --with-win32-nlsapi=unicode
might do the trick. Setting this flag to "ansi" has the effect of
omitting the preprocessor definition for MINGW_LIBGCJ_UNICODE, which
compiles in the ANSI logic - no private patch involved.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/





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