From b36054b80ba9282a4f86f79c56fa8d36d3abf561 Mon Sep 17 00:00:00 2001 From: Yoshito Umaoka Date: Wed, 29 Feb 2012 16:51:39 +0000 Subject: [PATCH] ICU-9139 Fix non-ASCII characters in regextst.cpp X-SVN-Rev: 31540 --- icu4c/source/test/intltest/regextst.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/test/intltest/regextst.cpp b/icu4c/source/test/intltest/regextst.cpp index f5f55e3d86c..09f205aad99 100644 --- a/icu4c/source/test/intltest/regextst.cpp +++ b/icu4c/source/test/intltest/regextst.cpp @@ -573,9 +573,9 @@ void RegexTest::Basic() { UParseError pe; UErrorCode status = U_ZERO_ERROR; RegexPattern *pattern; - pattern = RegexPattern::compile("aßx", UREGEX_CASE_INSENSITIVE, pe, status); + pattern = RegexPattern::compile(UNICODE_STRING_SIMPLE("a\\u00dfx").unescape(), UREGEX_CASE_INSENSITIVE, pe, status); RegexPatternDump(pattern); - RegexMatcher *m = pattern->matcher("aßxzzz", status); + RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status); UBool result = m->find(); printf("result = %d\n", result); // REGEX_FIND("", "<0>ab<1>cc<2>cccddd"); -- 2.40.0