This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/43962] New: gcj fails to compile with LANG=ja_JP.eucJP
- From: "turutani at scphys dot kyoto-u dot ac dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 2 May 2010 12:10:49 -0000
- Subject: [Bug java/43962] New: gcj fails to compile with LANG=ja_JP.eucJP
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcj fails to compile with LANG=ja_JP.eucJP.
For example, building pdftk fails, with gcc 4.5.0(20100401).
The error occurs arround
if (value.startsWith("\""))
Here is an output:
/usr/local/bin/gcj45 -L/usr/local/lib -O2 -w --encoding=UTF-8
--classpath="/usr/ports/print/pdftk/work/pdftk-1.41/java_libs" -c Anchor.java
-o Anchor.o
/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text/markup/MarkupParser.java:186:
error: String literal is not properly closed by a double-quote
if (value.startsWith("?§)
^^^
/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text/pdf/BaseFont.java:201:
error: Invalid character constant
public static final char CID_NEWLINE = '??ff';
^^^^^^^^
/usr/ports/print/pdftk/work/pdftk-1.41/java_libs/com/lowagie/text/pdf/BaseFont.java:1106:
error: Invalid character constant
for (char c = '?´4b'; c <= '?´58'; ++c)
Escape charactor may not be treated correctly.
building with LANG=C does not generate this problem.
gcc 4.2.5 does not generate this problem.
--
Summary: gcj fails to compile with LANG=ja_JP.eucJP
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: turutani at scphys dot kyoto-u dot ac dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43962