[Bug java/43962] New: gcj fails to compile with LANG=ja_JP.eucJP

turutani at scphys dot kyoto-u dot ac dot jp gcc-bugzilla@gcc.gnu.org
Sun May 2 12:11:00 GMT 2010


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



More information about the Gcc-bugs mailing list