JDK-6454714 : OutputStreamWriter writes incorrect number of characters to file with some IBM encodings
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 5.0,6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris
  • CPU: x86
  • Submitted: 2006-07-31
  • Updated: 2011-03-17
  • Resolved: 2008-04-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other
5.0u15-revFixed 5.0u16 b01Fixed
Related Reports
Relates :  
Description
JDK implementation of OutputStreamWriter writes incorrect number of characters to file with some encodings. Namely with x-IBM949, x-IBM949C and x-IBM970 encodings writer misses each 8193rd character.

I attached source of an example demonstrating this problem. It writes sequences of digits: 0..9 to a file and if we write for example 8194 digit characters to file we'll see at the end of the file: 
...123456789013

i.e. next to last character is missing. And we can see that each character after 8192 correctly written characters is missing.

Comments
EVALUATION Fixed via 5.0u15-rev-b09
07-04-2008

EVALUATION Problem is no longer reproducible from mustang b78, in which we've putback a number of charset implementation bugfixes including IBM-xyz. We've already passed 5.0u9, target this one as 5.0u10 to get it off the mustang ec list.
31-07-2006