2004-10-16 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/charset/UTF_16Encoder.java (UTF_16Encoder): Fixed maxBytesPerChar handling. From-SVN: r89150
This commit is contained in:
committed by
Michael Koch
parent
7af8968e98
commit
752ef8732d
@@ -63,7 +63,7 @@ final class UTF_16Encoder extends CharsetEncoder
|
||||
UTF_16Encoder (Charset cs, int byteOrder, boolean useByteOrderMark)
|
||||
{
|
||||
super (cs, 2.0f,
|
||||
useByteOrderMark ? 4.0f : 2.0f,
|
||||
useByteOrderMark ? 2.0f : 4.0f,
|
||||
byteOrder == BIG_ENDIAN
|
||||
? new byte[] { (byte) 0xFF, (byte) 0xFD }
|
||||
: new byte[] { (byte) 0xFD, (byte) 0xFF });
|
||||
|
||||
Reference in New Issue
Block a user