This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
gcj/33: gcj mangles composed characters
- To: java-gnats@sourceware.cygnus.com
- Subject: gcj/33: gcj mangles composed characters
- From: doko@debian.org
- Date: 15 Aug 1999 09:46:05 -0000
- Reply-To: doko@debian.org
- Resent-Cc: java-prs@sourceware.cygnus.com, green@cygnus.com,
- Resent-Reply-To: gnats-admin@sourceware.cygnus.com, doko@debian.org
- Resent-To: apbianco@cygnus.com
>Number: 33
>Category: gcj
>Synopsis: gcj mangles composed characters
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Aug 15 02:50:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Stephane Bortzmeyer <bortz@pasteur.fr>
>Release: gcj/libgcj 2.95
>Organization:
>Environment:
Debian Linux/GNU unstable ix86
>Description:
[Please see http://www.debian.org/Bugs/db/42/42895.html for the original report]
Java is supposed to be Unicode for its character strings. A program such
as this one:
public class Hello {
public static void main ( String []arguments)
{
System.out.println ("Liberté, égalité, fraternité !");
}
}
works fine (both with JDK-java and kaffe) when compiled with
JDK-javac or jikes, but prints strange stuff instead of my letters
when compiled with gcj (both with JDK-java and kaffe):
ishtar:~/tmp/Java> jikes Hello.java
ishtar:~/tmp/Java> kaffe Hello
Liberté, égalité, fraternité !
ishtar:~/tmp/Java> gcj -C Hello.java
ishtar:~/tmp/Java> kaffe Hello
Libertþ, þgalitþ, fraternitþ !
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: