ICU-5018 fix a bug in UTF-16 converter
X-SVN-Rev: 20348
This commit is contained in:
parent
2d5ccaf8a0
commit
ef60874ef8
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -123,6 +123,7 @@ class CharsetUTF16 extends CharsetICU {
|
||||
}
|
||||
toULength=2;
|
||||
cr = CoderResult.malformedForLength(sourceArrayIndex);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} while(length>0);
|
||||
|
Loading…
Reference in New Issue
Block a user