Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3
-
Resolution: Duplicate
-
Affects Version/s: 1.3.0
-
Fix Version/s: None
-
Component/s: core-libs
-
Labels:
-
Subcomponent:
-
CPU:sparc
-
OS:solaris_2.6
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.
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
- duplicates
-
JDK-4199599 Cp930 and Cp939 converters have problems with ITAIJI chars
-
- Resolved
-