[rfc][icedtea-web] Console Output Encoding Fix

Jie Kang jkang at redhat.com
Tue Jul 15 14:10:42 UTC 2014


Hello,

This patch resolves the bug here http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1858

Characters such as 'ó' were not appearing in the Java Console due to the implementation of TeeOutputStream appending bytes to a StringBuffer in a byte-by-byte fashion ignoring the fact that the encodings involve multi-byte characters. 

Also, as far as I can tell the StringBuffer is not used by multiple threads and has been replaced by StringBuilder (see http://docs.oracle.com/javase/7/docs/api/java/lang/StringBuilder.html)


Regards,

-- 

Jie Kang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: console-1858.patch
Type: text/x-patch
Size: 1636 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140715/42b309b6/console-1858.patch>


More information about the distro-pkg-dev mailing list