From e1163806393e67aa82f4c824e6f78cc7817d76f1 Mon Sep 17 00:00:00 2001 From: Peter Edberg Date: Fri, 24 Mar 2017 16:51:14 +0000 Subject: [PATCH] ICU-12994 fix platform string encoding issue in TestChineseTradHK X-SVN-Rev: 39927 --- icu4c/source/test/intltest/listformattertest.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/icu4c/source/test/intltest/listformattertest.cpp b/icu4c/source/test/intltest/listformattertest.cpp index 31a29cd382..af49baa05d 100644 --- a/icu4c/source/test/intltest/listformattertest.cpp +++ b/icu4c/source/test/intltest/listformattertest.cpp @@ -179,11 +179,13 @@ void ListFormatterTest::TestNynorsk() { // has only partial data for the listPattern element (overriding // some of the parent data). #12994 void ListFormatterTest::TestChineseTradHK() { + UnicodeString and_string = UnicodeString("\\u53CA", -1, US_INV).unescape(); + UnicodeString comma_string = UnicodeString("\\u3001", -1, US_INV).unescape(); UnicodeString results[4] = { one, - one + "\u53CA" + two, - one + "\u3001" + two + "\u53CA" + three, - one + "\u3001" + two + "\u3001" + three + "\u53CA" + four + one + and_string + two, + one + comma_string + two + and_string + three, + one + comma_string + two + comma_string + three + and_string + four }; CheckFourCases("zh_Hant_HK", one, two, three, four, results);