diff options
author | Michael Koch <konqueror@gmx.de> | 2004-10-16 17:58:01 +0000 |
---|---|---|
committer | Michael Koch <mkoch@gcc.gnu.org> | 2004-10-16 17:58:01 +0000 |
commit | 752ef8732dcfc40e4b061c4a6a55f099a95249f9 (patch) | |
tree | 48b924a773efdc1bc9eb6a8a25ab747998634be5 /libjava/gnu | |
parent | 7af8968e982dbe3c5e77400e76a95fd56abf21d1 (diff) | |
download | gcc-752ef8732dcfc40e4b061c4a6a55f099a95249f9.zip gcc-752ef8732dcfc40e4b061c4a6a55f099a95249f9.tar.gz gcc-752ef8732dcfc40e4b061c4a6a55f099a95249f9.tar.bz2 |
2004-10-16 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/charset/UTF_16Encoder.java
(UTF_16Encoder): Fixed maxBytesPerChar handling.
From-SVN: r89150
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/java/nio/charset/UTF_16Encoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/gnu/java/nio/charset/UTF_16Encoder.java b/libjava/gnu/java/nio/charset/UTF_16Encoder.java index b0cb9ed..8026e02 100644 --- a/libjava/gnu/java/nio/charset/UTF_16Encoder.java +++ b/libjava/gnu/java/nio/charset/UTF_16Encoder.java @@ -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 }); |