public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/43962] New: gcj fails to compile with LANG=ja_JP.eucJP
@ 2010-05-02 12:10 turutani at scphys dot kyoto-u dot ac dot jp
2010-06-25 13:54 ` [Bug java/43962] " turutani at scphys dot kyoto-u dot ac dot jp
0 siblings, 1 reply; 2+ messages in thread
From: turutani at scphys dot kyoto-u dot ac dot jp @ 2010-05-02 12:10 UTC (permalink / raw)
To: java-prs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1522 bytes --]
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug java/43962] gcj fails to compile with LANG=ja_JP.eucJP
2010-05-02 12:10 [Bug java/43962] New: gcj fails to compile with LANG=ja_JP.eucJP turutani at scphys dot kyoto-u dot ac dot jp
@ 2010-06-25 13:54 ` turutani at scphys dot kyoto-u dot ac dot jp
0 siblings, 0 replies; 2+ messages in thread
From: turutani at scphys dot kyoto-u dot ac dot jp @ 2010-06-25 13:54 UTC (permalink / raw)
To: java-prs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]
------- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-06-25 13:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-02 12:10 [Bug java/43962] New: gcj fails to compile with LANG=ja_JP.eucJP turutani at scphys dot kyoto-u dot ac dot jp
2010-06-25 13:54 ` [Bug java/43962] " turutani at scphys dot kyoto-u dot ac dot jp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).