This is probably the wrong subcategory for this bug but I couldn't find
anything related to I18N/converters...
Build & run the attached testcase (sampR, its an application). You need to pass
in a charset on the command line, and it needs the associated data file (inp) to
be in the current directory. I'm currently using jdk1.1.4.
Try "sampR iso-8859-1", "sampR iso-2022-jp", or "sampR EUCJIS"
You should get the contents of the data file dumped to the screen.
Now try "sampR koi8-r"
I get the following:
run sampR koi8-r
CHARSET: koi8-r
java.lang.ArrayIndexOutOfBoundsException: 160
at sun.io.ByteToCharSingleByte.convert(ByteToCharSingleByte.java:84)
at java.io.InputStreamReader.convertInto(InputStreamReader.java)
at java.io.InputStreamReader.fill(InputStreamReader.java)
at java.io.InputStreamReader.read(InputStreamReader.java)
at java.io.BufferedReader.fill(BufferedReader.java)
at java.io.BufferedReader.readLine(BufferedReader.java)
at sampR.main(sampR.java:17)
anything related to I18N/converters...
Build & run the attached testcase (sampR, its an application). You need to pass
in a charset on the command line, and it needs the associated data file (inp) to
be in the current directory. I'm currently using jdk1.1.4.
Try "sampR iso-8859-1", "sampR iso-2022-jp", or "sampR EUCJIS"
You should get the contents of the data file dumped to the screen.
Now try "sampR koi8-r"
I get the following:
run sampR koi8-r
CHARSET: koi8-r
java.lang.ArrayIndexOutOfBoundsException: 160
at sun.io.ByteToCharSingleByte.convert(ByteToCharSingleByte.java:84)
at java.io.InputStreamReader.convertInto(InputStreamReader.java)
at java.io.InputStreamReader.fill(InputStreamReader.java)
at java.io.InputStreamReader.read(InputStreamReader.java)
at java.io.BufferedReader.fill(BufferedReader.java)
at java.io.BufferedReader.readLine(BufferedReader.java)
at sampR.main(sampR.java:17)
- duplicates
-
JDK-4071103 sun.io.ByteToCharKOI8_R.java converter is broken
- Closed