ICU-5018 fix a bug in UTF-16 converter

X-SVN-Rev: 20348
This commit is contained in:
Winnie Yick 2006-09-18 22:14:19 +00:00
parent 2d5ccaf8a0
commit ef60874ef8
2 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public abstract class CharsetDecoderICU extends CharsetDecoder{
* @stable ICU 3.6
*/
protected final CoderResult implFlush(CharBuffer out) {
return toUnicodeWithCallback(EMPTY, out, null, true);
return CoderResult.UNDERFLOW;//toUnicodeWithCallback(EMPTY, out, null, true);
}
/**

View File

@ -123,6 +123,7 @@ class CharsetUTF16 extends CharsetICU {
}
toULength=2;
cr = CoderResult.malformedForLength(sourceArrayIndex);
break;
}
}
} while(length>0);