FIX: Problem With Chinese and Korean Character Encoders (268855)



The information in this article applies to:

  • Microsoft virtual machine

This article was previously published under Q268855

SYMPTOMS

When you use an OutputStreamWriter together with the Big5, GB2312, or KSC5601 character converters, some data may be missing from the output stream. For every 4K to 8K of character data written to the OutputStreamWriter, a single character is lost and its corresponding byte representation is not written to the output stream.

CAUSE

The problem is caused by bugs in the sun.io.CharToByteBig5, sun.io.CharToByteGB2312, and sun.io.CharToByteKSC5601 character converter classes. These converters return an incorrect result if the nextCharIndex() method is called after the converter has thrown a ConversionBufferFullException. The returned character index is one character greater than it should be.

RESOLUTION

To resolve this problem on computers that are running Microsoft Windows 95, Microsoft Windows 98, Microsoft Windows NT, and Microsoft Windows 2000, download and install the file described in this section.

The following file is available for download from the Microsoft Download Center:

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. Note This update should not be installed on the 15xx Microsoft virtual machine (Microsoft VM) series.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was corrected in the character encoder update for the Microsoft VM.

REFERENCES

The latest Microsoft virtual machine is available from the following Microsoft Web site: For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:6/14/2006
Keywords:kbdownload kbBug kbfix kbJavaVM33xxfix KB268855