Name: js151677 Date: 07/07/2004
FULL PRODUCT VERSION :
JDK 1.5.0_02
ADDITIONAL OS VERSION INFORMATION :
Linux prey 2.4.20-28.8 #1 Thu Dec 18 12:25:00 EST 2003 i686 athlon i386 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
Hi!
I've installed jdk1.5.0beta2 and recognized that it didn't want to compile those projects in which german umlauts where used.
It gave following error for each occurence of a german umlaut in the source files:
--> "unmappable character for encoding UTF8"
The $LANG environment variable is set to "de_DE.UTF-8" and till jdk 1.5.0 no jdk version i used (eg. jdk1.4.2_04) complained about this error.
Setting the $LANG environment variable to "de_DE.ISO-8859-1" resolves the problem and compiles my files as of before 1.5.0_02.
So whats the problem here? I think an UTF-8 encoding should be able to deal with german umlauts?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install JDK 1.5.0_02.
2. change the $LANG environment variable to de_DE.UTF-8
3. compile a java source file that includes german umlauts like "M-^OÀ»,M-^OÀ»,M-^OÀ»"
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Assuming that the compiled source file adheres to the java specification as of JDK 1.5.0_02 I expect the file to be successfully compiled.
ACTUAL -
The file is not being compiled successfully. The javac process stops with an error for each german umlaut that was found in the source file with this error: "unmappable character for encoding UTF8".
ERROR MESSAGES/STACK TRACES THAT OCCUR :
unmappable character for encoding UTF8
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
class JavaBug {
private static String name = "Peter MM-^OÀ»ller";
public JavaBug() {
}
public static void main( String a[] ) {
System.out.println( "Name is:"+ JavaBug.name );
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Set the $LANG environment variable to following value: de_DE.ISO-8859-1
(Incident Review ID: 284759)
======================================================================
###@###.### 10/26/04 03:33 GMT
FULL PRODUCT VERSION :
JDK 1.5.0_02
ADDITIONAL OS VERSION INFORMATION :
Linux prey 2.4.20-28.8 #1 Thu Dec 18 12:25:00 EST 2003 i686 athlon i386 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
Hi!
I've installed jdk1.5.0beta2 and recognized that it didn't want to compile those projects in which german umlauts where used.
It gave following error for each occurence of a german umlaut in the source files:
--> "unmappable character for encoding UTF8"
The $LANG environment variable is set to "de_DE.UTF-8" and till jdk 1.5.0 no jdk version i used (eg. jdk1.4.2_04) complained about this error.
Setting the $LANG environment variable to "de_DE.ISO-8859-1" resolves the problem and compiles my files as of before 1.5.0_02.
So whats the problem here? I think an UTF-8 encoding should be able to deal with german umlauts?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install JDK 1.5.0_02.
2. change the $LANG environment variable to de_DE.UTF-8
3. compile a java source file that includes german umlauts like "M-^OÀ»,M-^OÀ»,M-^OÀ»"
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Assuming that the compiled source file adheres to the java specification as of JDK 1.5.0_02 I expect the file to be successfully compiled.
ACTUAL -
The file is not being compiled successfully. The javac process stops with an error for each german umlaut that was found in the source file with this error: "unmappable character for encoding UTF8".
ERROR MESSAGES/STACK TRACES THAT OCCUR :
unmappable character for encoding UTF8
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
class JavaBug {
private static String name = "Peter MM-^OÀ»ller";
public JavaBug() {
}
public static void main( String a[] ) {
System.out.println( "Name is:"+ JavaBug.name );
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Set the $LANG environment variable to following value: de_DE.ISO-8859-1
(Incident Review ID: 284759)
======================================================================
###@###.### 10/26/04 03:33 GMT