]> granicus.if.org Git - icu/commitdiff
ICU-11979 Fix max char size for iso-2022-kr in icu4j
authorMichael Ow <mow@svn.icu-project.org>
Tue, 17 Nov 2015 23:05:18 +0000 (23:05 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Tue, 17 Nov 2015 23:05:18 +0000 (23:05 +0000)
X-SVN-Rev: 38085

icu4j/main/classes/charset/src/com/ibm/icu/charset/CharsetISO2022.java
icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/TestCharset.java

index f993010d88ae226489f0f1fc32e05b95c8094460..deca4e99f67f4dd41582f504b067758eeffbc4fd 100644 (file)
@@ -159,7 +159,7 @@ class CharsetISO2022 extends CharsetICU {
     private void ISO2022InitKR(int version) {
         variant = ISO_2022_KR;
         
-        maxBytesPerChar = 3;
+        maxBytesPerChar = 8;
         minBytesPerChar = 1;
         maxCharsPerByte = 1;
         
index 9e8036796275941c80ebb9398acdda4d9722c8de..de13420340c9e093b357b16c76dbb47957c7513b 100644 (file)
@@ -5663,7 +5663,7 @@ public class TestCharset extends TestFmwk {
                 20,
                 80, /* changed from 60 to 80 to reflect the updates by #9205 */
                 80,
-                60
+                160
         };
         
         int stringLength = 10;