JDK-4482116 : (cs) outputstream prints wrong values for non-ascii characters
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2001-07-19
  • Updated: 2001-07-20
  • Resolved: 2001-07-20
Related Reports
Duplicate :  
Description

Name: yyT116575			Date: 07/19/2001


java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)


The output of System.out.println() is different from previous versions of jdk
on Windows 2000.  This is also true of Windows NT.  

The test program prints this with jdk 1.4:

??

and this with jdk 1.3:

????

Here's the test program:

public class str {
  public static void main(String[] args) {
    System.out.println("\u304a\u304d\u3083\u304f");
  }
}
(Review ID: 128273) 
======================================================================

Comments
WORK AROUND Name: yyT116575 Date: 07/19/2001 None ======================================================================
11-06-2004

PUBLIC COMMENTS .
10-06-2004

EVALUATION The submitter expects four substitution characters to appear in the output rather than only two. It seems that when an unmappable character is found in an input stream, java.nio.charset.CharsetEncoder skips at least one character. This is a duplicate of bug 4457851. iag@eng 2001-07-20
20-07-2001