I don't konw what your language setting of MacOS, but if your
language setting is English, the JVM file.encoding is MacRoman that
is OK for all characters of file name, and if language setting is
another, such like Japanese, the JVM file.encoding will be 'SJIS',
so the error happened.
Problem confirmed on OS 10.4.9, Java 1.5.0_07-164.
This command-line fails in Terminal.app:
java -Dfile.encoding=SJIS DittoTest
This one works:
java -Dfile.encoding=UTF8 DittoTest
So it appears that one work-around is to always specify a
file.encoding of UTF8. Specifying MacRoman would also work, but UTF8
is a Unicode-based encoding, and correctly represents more alphabets
than MacRoman or SJIS. Therefore, it will be safer to use UTF8.
Also, the problem does not seem to occur when the 1.4 JVM is used.
So another work-around would be to use that JVM.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden