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

Character converters for Cp930, Cp933, Cp935, Cp937, Cp939 can not work.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: core-libs

      Description

      When you run the attached class with an input encoding name of Cp930, Cp933, Cp935, Cp937, Cp939, you will get the following exception
      Exception in thread "main" java.lang.InternalError: this.getMaxBytesPerChar returned bad value
              at sun.io.CharToByteConverter.convertAll(CharToByteConverter.java:221)
              at TestEncoding.test(TestEncoding.java:42)
              at TestEncoding.main(TestEncoding.java:25)

      The attached java file has only normal operation to convert a character one by one.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duke J. Duke (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: