[Bug java/43962] gcj fails to compile with LANG=ja_JP.eucJP
turutani at scphys dot kyoto-u dot ac dot jp
gcc-bugzilla@gcc.gnu.org
Fri Jun 25 13:54:00 GMT 2010
------- Comment #1 from turutani at scphys dot kyoto-u dot ac dot jp 2010-06-25 13:54 -------
Created an attachment (id=21004)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21004&action=view)
sample code
This is a test code to generate error.
gcc-4.2.5 20090325 generates no error.
gcc-4.5.1 20100617 generates error with LANG=ja_JP.eucJP, but no error with
LANG=C.
Here are errors:
localetest.java:3: error: Syntax error on token "test", ; expected
String str = "ÿÿtest";
^^^^
localetest.java:3: error: Syntax error, insert ")" to complete MethodInvocation
if (str.startsWith("ÿÿ"))
^^^
localetest.java:3: error: Syntax error, insert ") Statement" to complete
IfStatement
if (str.startsWith("ÿÿ"))
^^^
localetest.java:3: error: Syntax error, insert ")" to complete MethodInvocation
System.out.println("start with ÿÿ");
^^^^^^^^^^^^^^
localetest.java:3: error: Syntax error, insert ";" to complete Statement
System.out.println("start with ÿÿ");
^^^^^^^^^^^^^^
5 problems (5 errors)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43962
More information about the Java-prs
mailing list