ICU-5018 fix a small bug
X-SVN-Rev: 20272
This commit is contained in:
parent
fdf9a9dbc2
commit
3870fe1448
@ -290,7 +290,7 @@ public class CharsetUTF16 extends CharsetICU {
|
||||
|
||||
if((c=(char)fromUChar32)!=0 && UTF16.isTrailSurrogate(trail=source.get(sourceArrayIndex)) && target.remaining()>=4) {
|
||||
/* the last buffer ended with a lead surrogate, output the surrogate pair */
|
||||
++sourceIndex;
|
||||
++sourceArrayIndex;
|
||||
--length;
|
||||
target.put((byte)(c>>>8));
|
||||
target.put((byte)c);
|
||||
|
Loading…
Reference in New Issue
Block a user