-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
1.4.2
-
generic
-
generic
Name: dk106046 Date: 07/31/2003
When trying to convert a file containing Korean characters, a sun.io.MalformedException is thrown:
sun.io.MalformedInputException
at sun.io.ByteToCharEUC.convert(ByteToCharEUC.java:100)
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:247)
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:278)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.Reader.read(Reader.java:100)
at krencode.main(krencode.java:24)
This bug can be reproduced on the 1.4.2 and 1.3.1_08 JDKs.
I can send provide a testcase on request - I didn't include it here because the ascii values in the test file would probably get messed up.
This bug has been fixed in the IBM JDK - I can provide the diffs if required. The file that needs to be fixed is "ByteToCharEUC.java", as suggested by the stack trace above.
======================================================================
When trying to convert a file containing Korean characters, a sun.io.MalformedException is thrown:
sun.io.MalformedInputException
at sun.io.ByteToCharEUC.convert(ByteToCharEUC.java:100)
at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:247)
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:278)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:182)
at java.io.InputStreamReader.read(InputStreamReader.java:167)
at java.io.Reader.read(Reader.java:100)
at krencode.main(krencode.java:24)
This bug can be reproduced on the 1.4.2 and 1.3.1_08 JDKs.
I can send provide a testcase on request - I didn't include it here because the ascii values in the test file would probably get messed up.
This bug has been fixed in the IBM JDK - I can provide the diffs if required. The file that needs to be fixed is "ByteToCharEUC.java", as suggested by the stack trace above.
======================================================================