From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31252 invoked by alias); 2 May 2010 12:10:50 -0000 Received: (qmail 31232 invoked by uid 48); 2 May 2010 12:10:49 -0000 Date: Sun, 02 May 2010 12:10:00 -0000 Subject: [Bug java/43962] New: gcj fails to compile with LANG=ja_JP.eucJP X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "turutani at scphys dot kyoto-u dot ac dot jp" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2010-q2/txt/msg00031.txt.bz2 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