This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Mohan Build 22.5.03
- From: João Garcia <jgarcia at uk2 dot net>
- To: java at gcc dot gnu dot org, simon dot rutishauser at gmx dot ch
- Date: Tue, 27 May 2003 12:09:33 +0100
- Subject: Re: Mohan Build 22.5.03
Hi Simon,
The problem has nothing to do with the drive you are using. And has
nothing to do with Mohan's build (although I have not tried the last one).
The only way I can find to reproduce the problem is to put a file in the
working directory (you are not accessing the root directory -- you would
have to use c:\\ for that...) with a file name which includes a
character with a code above 127 (joão.txt will do the trick).
I doubt that anyone using an english keyboard will ever report this
problem... ;-)
If you would take a look at the file natFileWin32.cc (libjava sources)
you would understand the reason: libjava is using UTF-8 encoding to
convert chars from 16 bits to 8 bits...
Theoretically I love UTF-8! But it is almost useless with Win32 file
systems for char codes above 127. :(
I have a patch that fixes this problem. It supports all win32 code
pages, with the following exceptions (I don't know how to work with
these code pages):
Chinese (traditional and simplified);
Japanese;
Korean.
It is not fully tested (I wouldn't be able to test it effectively on all
the code pages...).
I am willing to post it on the patches mailing list (I was already
planing to do so). But there is no warranty that it will be accepted...
Can you build your own version of the compiler?
Maybe Mohan will be kind enough to include the patch in the next
"Mohan's build" (tm). ;-)
João