[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Fix UTF_8 CharSet
From: |
Mark Wielaard |
Subject: |
[cp-patches] FYI: Fix UTF_8 CharSet |
Date: |
Thu, 17 Feb 2005 00:20:20 +0100 |
Hi,
I am checking in this obvious bug fix from Julian Scheid.
2005-02-16 Julian Scheid <address@hidden>
* gnu/java/nio/charset/UTF_8.java (decodeLoop): Set inPos to
in.position().
(encodeLoop): Likewise.
A mauve test has been added.
Cheers,
Mark
--- gnu/java/nio/charset/UTF_8.java 3 Feb 2005 22:37:29 -0000 1.4
+++ gnu/java/nio/charset/UTF_8.java 16 Feb 2005 23:13:35 -0000
@@ -101,7 +101,7 @@
protected CoderResult decodeLoop (ByteBuffer in, CharBuffer out)
{
// TODO: Optimize this in the case in.hasArray() / out.hasArray()
- int inPos = 0;
+ int inPos = in.position();
try
{
while (in.hasRemaining ())
@@ -196,7 +196,7 @@
protected CoderResult encodeLoop (CharBuffer in, ByteBuffer out)
{
- int inPos = 0;
+ int inPos = in.position();
try
{
// TODO: Optimize this in the case in.hasArray() / out.hasArray()
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Fix UTF_8 CharSet,
Mark Wielaard <=