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

\uff00~: sun.io.UnknownCharacterException occurs on awt components on Win98/ME

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b40
    • CPU:
      x86
    • OS:
      windows_98
    • Verification:
      Verified

      Description

      ===============================
      OS: Windows 98 2nd. Japanese
          Windows ME Japanese
      Build: Tiger b19
      ===============================


      On awt components such as TextField, Button, Label, CheckBox and RadioButton,
      when I tried to display Halfwidth and Fullwidth forms(\uff00~), the excepaion below occurred though the characteres were displayed.


      sun.io.UnknownCharacterException
              at sun.io.CharToByteSingleByte.convert(CharToByteSingleByte.java:185)
              at sun.awt.PlatformFont.makeConvertedMultiFontChars(PlatformFont.java:28
      9)
              at sun.awt.PlatformFont.makeConvertedMultiFontString(PlatformFont.java:2
      14)
              at sun.awt.windows.WToolkit.eventLoop(Native Method)
              at sun.awt.windows.WToolkit.run(WToolkit.java:269)
              at java.lang.Thread.run(Thread.java:549)


      To reproduce,

      1)Untar CharView.tar (attached0
      2)Compile *.java
      3)Launch CharView
      4)Input ff00 in TextField which has "0000" by default
      Then, you can see the problem.
      Please change the size to around 20 point, you can see the characters in Halfwidth and Fullwidth forms range are displayed.



      With some builds before b19, the test cases can't be launched :
      1)b16 - b18 : The error below occurred and I was not able to launch the test case.

      Exception in thread "main" java.lang.UnsatisfiedLinkError: F:\jdk1.5.0\beta\b16binaries\windows-i586\jre\bin\awt.dll: ?V?X?e????????????f?o?C?X???????\201\221??????B
              at java.lang.ClassLoader$NativeLibrary.load(Native Method)
              at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
              at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
              at java.lang.Runtime.loadLibrary0(Runtime.java:788)
              at java.lang.System.loadLibrary(System.java:862)
              at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
              at java.security.AccessController.doPrivileged(Native Method)
              at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
              at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
              at java.awt.Component.<clinit>(Component.java:538)

      2)b15 or before : 4895864 occurs


      I confired that :
      this is not reproducible with 1.4.2_01 b06 on win98.
      this is not reproducible with tiger b19 on Windows XP.


        Attachments

          Activity

            People

            Assignee:
            sherman Xueming Shen
            Reporter:
            mtokunagsunw Miki Tokunaga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: