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

"eucJP-Open" decoder table is wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6u10
    • core-libs

      FULL PRODUCT VERSION :
      java version "1.6.0_12"
      Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
      Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      eucJP-Open decoder outputs '\u3052' for input [0xFC 0xFB].
      I think it must be '\u00AC'.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      run a simple code.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      it shows '\u00AC' charactor (or '\uFFE2') on console screen.
      ACTUAL -
      it shows '\u3052' charactor.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      java.nio.ByteBuffer bybuf = java.nio.ByteBuffer.wrap(new byte[]{(byte)0xFC, (byte)0xFB});
      java.nio.charset.Charset charset = java.nio.charset.Charset.forName("eucJP-Open");
      java.nio.charset.CharsetDecoder decoder = charset.newDecoder();
      java.nio.CharBuffer result = decoder.decode(bybuf);
      System.out.println(result.toString());

      ---------- END SOURCE ----------

            sherman Xueming Shen
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: