JDK-4352234 : InputStreamReader failing for ja/SJIS encoding (Converter tests for i18n)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 1.3.0,1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2000-07-11
  • Updated: 2000-11-20
  • Resolved: 2000-11-20
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Description
InputStreamReader : 
         Encoding : SJIS
       Nativecode : 5C5D5E5F606162636465
    Output String : \\]^_`abcde
          Unicode : 005C005D005E005F006000610062006300640065
  Expected String : \u00a5]^_`abcde
          Unicode : 00A5005D005E005F006000610062006300640065

--------------------------------------------------------------------------------
InputStreamReader : 
         Encoding : SJIS
       Nativecode : 7A7B7C7D7E81408141814281438144
    Output String : z{|}~?????
          Unicode : 007A007B007C007D007E300030013002FF0CFF0E
  Expected String : z{|}??????
          Unicode : 007A007B007C007D203E300030013002FF0CFF0E
-----------------------------------------------------------------------------
InputStreamReader : 
         Encoding : SJIS
       Nativecode : 8159815A815B815C815D815E815F816081618162
    Output String : ??????????
          Unicode : 3006300730FC20152010FF0FFF3C301C2016FF5C
  Expected String : ??????\\???
          Unicode : 3006300730FC20152010FF0F005C301C2016FF5C

Comments
PUBLIC COMMENTS Converter tests failing for ja/SJIS encoding
10-06-2004

EVALUATION The SJIS converters intensionally convert 0x5c to \u005c. Otherwise, it breaks applications. For example, "c:\jdk1.3" in SJIS will be converted to "c:\u00a5jdk1.3" as a Java Sting. Then, it can't be recognized as a path name of the Win32 file systems. The code mapping is described in test/sun/io/Converter/SJIS.b2c. This bug should be closed as "not a bug". masayoshi.okutsu@Eng 2000-07-12
12-07-2000