-
Bug
-
Resolution: Won't Fix
-
P2
-
None
-
5.0
-
x86
-
linux
Name: rl43681 Date: 02/04/2004
FULL PRODUCT VERSION :
java version "1.5.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b31)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b31, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux 2.4.23-ck1 #2 Wed Dec 10 10:21:45 CET 2003 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The "serif" font cannot display German and Japanese characters side-by-side anymore.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
I used the test-program in the "source code" section below.
Start the program with the following environment settings:
LC_ALL=POSIX
LC_ALL=ja_JP.UTF-8
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
See the working combination ja_JP.UTF-8 with j2sdk1.4.2_02
ACTUAL -
The results under j2sdk 1.4.0_02 and j2sdk 1.5.0-b31 are graphically documented under http://www.online-club.de/~mtj/test_results.png
For documentation reasons, if the graphics should be unavailable sometime in the future, this is the result as text:
j2sdk1.4.0_02, environment=POSIX: German character displays, Japanese does not
j2sdk1.5.0-b31: environment=POSIX: German character displays, Japanese does not
j2sdk1.4.0_02, environment=ja_JP.UTF-8: both characters display
j2sdk1.5.0-b31: environment=ja_JP.UTF-8: German character displays, Japanese does not
(Sidenote: it is indeed possible to select a fonts in j2sdk1.5.0-b31 which display Japanese characters, but these cannot display German characters)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.awt.*;
import javax.swing.*;
public class FontTest extends JFrame {
public static void main(String[] args) {
new FontTest().setVisible(true);
}
private FontTest() {
setDefaultCloseOperation(EXIT_ON_CLOSE);
String tstr = "\u00e4\u52d8";
JLabel lab = new JLabel(tstr);
lab.setFont(new Font("serif", Font.PLAIN, 20));
getContentPane().add(lab, BorderLayout.CENTER);
pack();
}
}
---------- END SOURCE ----------
(Incident Review ID: 235564)
======================================================================