From a47a3679accb627681f94f63732cce89140bcb73 Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Tue, 17 Nov 2015 23:08:52 +0000 Subject: [PATCH] ICU-11979 Fix max char size for iso-2022-kr in icu4c X-SVN-Rev: 38086 --- icu4c/source/common/ucnv2022.cpp | 2 +- icu4c/source/test/cintltst/ccapitst.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/common/ucnv2022.cpp b/icu4c/source/common/ucnv2022.cpp index 0c12dd0d7b..6d50ae8f08 100644 --- a/icu4c/source/common/ucnv2022.cpp +++ b/icu4c/source/common/ucnv2022.cpp @@ -3893,7 +3893,7 @@ static const UConverterStaticData _ISO2022KRStaticData={ UCNV_IBM, UCNV_ISO_2022, 1, - 3, /* max 3 bytes per UChar: SO+DBCS */ + 8, /* max 8 bytes per UChar */ { 0x1a, 0, 0, 0 }, 1, FALSE, diff --git a/icu4c/source/test/cintltst/ccapitst.c b/icu4c/source/test/cintltst/ccapitst.c index 16c9d9de2c..58fc7fa7cd 100644 --- a/icu4c/source/test/cintltst/ccapitst.c +++ b/icu4c/source/test/cintltst/ccapitst.c @@ -2898,7 +2898,7 @@ static void TestLMBCSMaxChar(void) { { 4, "HZ"}, { 3, "ISO-2022"}, - { 3, "ISO-2022-KR"}, + { 8, "ISO-2022-KR"}, { 6, "ISO-2022-JP"}, { 8, "ISO-2022-CN"},