JDK-6581579 : Unicode Extension B characters are not displayed on Simplified Chinese Windows Vista
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1,windows_vista
  • CPU: x86,sparc
  • Submitted: 2007-07-17
  • Updated: 2010-04-02
  • Resolved: 2007-07-18
Related Reports
Duplicate :  
Description
OPERATING SYSTEM(S):
--------------------
Windows Vista (Simplified Chinese)

FULL JDK VERSION(S):
-------------------
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode)

DESCRIPTION:
------------
I tried to run attached testcase on Simplified Chinese Windows Vista. Unicode Extension B characters are not displayed properly except TextField component.

=========================================================================
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

class ComponentTest {
  ComponentTest(String text) {
    Frame f = new Frame("AWT");
    f.setLayout(new GridLayout(0,1));
    f.add(new TextArea(text));
    f.add(new TextField(text));
    f.add(new Button(text));
    f.setSize(300,300);
    f.setLocation(0,0);
    f.addWindowListener(new WindowAdapter(){
      public void windowClosing(WindowEvent e){
        System.exit(0);
      }
    });
    f.setVisible(true);
    JFrame jf = new JFrame("Swing");
    Container c = jf.getContentPane();
    c.setLayout(new GridLayout(0,1));
    c.add(new JTextArea(text));
    c.add(new JButton(text));
    jf.setSize(300,300);
    jf.setLocation(300,0);
    jf.addWindowListener(new WindowAdapter(){
      public void windowClosing(WindowEvent e){
        System.exit(0);
      }
    });
    jf.setVisible(true);
  }
  public static void main(String[] args) {
    new ComponentTest("\ud840\udc00\ud840\udc01\ud840\udc02");
  }
}
=========================================================================

Comments
EVALUATION This problem is not specific to Windows Vista or any particular JDK version, it is a well-known limitation of the current AWT implementation. See 6515107 for details.
18-07-2007

WORK AROUND None
17-07-2007