Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6581579

Unicode Extension B characters are not displayed on Simplified Chinese Windows Vista

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6u2
    • client-libs
    • x86, sparc
    • solaris_2.5.1, windows_vista

      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");
        }
      }
      =========================================================================

            Unassigned Unassigned
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: