]> granicus.if.org Git - icu/commitdiff
ICU-21641 Fix "emoji" and "eor" for Collator::getKeywordValues
authorFrank Tang <ftang@chromium.org>
Fri, 9 Jul 2021 00:40:23 +0000 (00:40 +0000)
committerFrank Yung-Fong Tang <ftang@google.com>
Tue, 13 Jul 2021 22:30:42 +0000 (15:30 -0700)
See #1743

icu4c/source/common/uresbund.cpp
icu4c/source/test/intltest/svccoll.cpp
icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/CollationServiceTest.java

index 5ea4187100e02d33d971d55387620e119e7cd7e7..3b8a654c3b60879ddd717cdadac90129d6f73ca4 100644 (file)
@@ -2954,7 +2954,7 @@ ures_getKeywordValues(const char *path, const char *keyword, UErrorCode *status)
         UResourceBundle   *bund = NULL;
         UResourceBundle   *subPtr = NULL;
         UErrorCode subStatus = U_ZERO_ERROR; /* don't fail if a bundle is unopenable */
-        bund = ures_openDirect(path, locale, &subStatus);
+        bund = ures_open(path, locale, &subStatus);
         
 #if defined(URES_TREE_DEBUG)
         if(!bund || U_FAILURE(subStatus)) {
index 8d46c68f37f41f7fa70f204a44b9404e352873e1..a5f22b4d65bfd4f8b6a660cbcfc983ba17ec3716 100644 (file)
@@ -560,7 +560,9 @@ static const int32_t KW_COUNT = UPRV_LENGTHOF(KW);
 
 static const char* KWVAL[] = {
     "phonebook",
-    "stroke"
+    "stroke",
+    "emoji",
+    "eor"
 };
 static const int32_t KWVAL_COUNT = UPRV_LENGTHOF(KWVAL);
 
index c30812318eb71b9d85bb1706fba2b9720e971dc6..848499d1c29f7d8b981d536df778f5b69e237c92 100644 (file)
@@ -341,7 +341,9 @@ public class CollationServiceTest extends TestFmwk {
 
     private static final String KWVAL[] = {
         "phonebook",
-        "stroke"
+        "stroke",
+        "emoji",
+        "eor",
     };
 
     @Test