United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6454714 OutputStreamWriter writes incorrect number of characters to file with some IBM encodings
JDK-6454714 : OutputStreamWriter writes incorrect number of characters to file with some IBM encodings

Details
Type:
Bug
Submit Date:
2006-07-31
Status:
Resolved
Updated Date:
2011-03-17
Project Name:
JDK
Resolved Date:
2008-04-07
Component:
core-libs
OS:
solaris
Sub-Component:
java.nio.charsets
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0,6
Fixed Versions:
5.0u16 (b01)

Related Reports
Backport:
Relates:

Sub Tasks

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

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.
                                     
2006-07-31
EVALUATION

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



Hardware and Software, Engineered to Work Together