-
Bug
-
Resolution: Unresolved
-
P4
-
None
-
6u10
-
x86
-
windows_xp
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 ----------
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 ----------