This is the mail archive of the java-prs@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

gcj/33: gcj mangles composed characters



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]