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

TextField/TextArea can't display/input Japanese characters on RedHat 7.2 64bit

XMLWordPrintable

      =========================================================
      OS : RedHat Linux 7.2 ia64
      JDK: Mantis jdk1.4.2 b14 & b15
           j2sdk-1_4_2-beta-bin-b14-linux-ia64-22_jan_2003.bin
           j2sdk-1_4_2-beta-bin-b15-linux-ia64-24_jan_2003.bin
      TestCase : CharView.java, CharViewMultiLine.java
      locale : ja
      =========================================================

      Japanese character are displayed with Mantis b14 - This is #4704500's fix(verified with b14).
      However, AWT component like a TextField, TextArea and Choice has a problem.
      Japanese charcter are not displyed/inputted correctly on TextField, TextArea and Choice.
      The character are "mojibake".

      This is reproducible with Mantis b15 also.

      To reproducible,

      a) to see the TextField problem;
         1) Run CharView(attached)
         2) Comes up CharView dialog.
         3) Input Japanese Charcter code.
            ex. 3000 or 4e00
         4) Change from "Button" to "TextField" using Choice
      You can see that Japanese character are "mojibake" on TextField.
         5) Input some japanese charcter.
      You can see that inputted characger are "mojibake".

      b) to see the TextArea and Choice problem;
         1) Run CharViewMultiLine(attached)
         2) Comes up CharViewMultiLine dialog.
         3) Input Japanese character code.
            ex.3000 or 4e00
      You can see that Japase character are "mojibake" on TextArea.

         4) Change from "TextArea" to "Choice" using Choice
      You can see that Japanese character are "mojibake" on Choice.


      * This problem are not seen on Swing component like a JTextFiedl/JTextArea.
        JTextField/JTextArea can display ja char and input correctly.

      NOTE:
      Running test case on RH7.2 ia64, Warning display as below.
        This problem is filed already as a #4807550.

      Warning: Cannot convert string "-watanabe-mincho-medium-r-normal--*-140-*-*-c-*-jisx0208.1983-0" to type FontStruct


      --- locale info -----
      [rs88024@guiness ~]$ locale
      LANG=ja_JP.eucJP
      LC_CTYPE="ja_JP.eucJP"
      LC_NUMERIC="ja_JP.eucJP"
      LC_TIME="ja_JP.eucJP"
      LC_COLLATE="ja_JP.eucJP"
      LC_MONETARY="ja_JP.eucJP"
      LC_MESSAGES="ja_JP.eucJP"
      LC_PAPER="ja_JP.eucJP"
      LC_NAME="ja_JP.eucJP"
      LC_ADDRESS="ja_JP.eucJP"
      LC_TELEPHONE="ja_JP.eucJP"
      LC_MEASUREMENT="ja_JP.eucJP"
      LC_IDENTIFICATION="ja_JP.eucJP"
      LC_ALL=

      =============================================================================

      I confirmed that this problem is seen on not only japanese character code, but also other code such as 00A0-00FF, 0410-044F.


      [###@###.### 2003-01-29]
      =============================================================================

            sherman Xueming Shen
            rsuzukisunw Rieko Suzuki (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: