ICU-21641 Fix "emoji" and "eor" for Collator::getKeywordValues

See #1743
This commit is contained in:
Frank Tang 2021-07-09 00:40:23 +00:00 committed by Frank Yung-Fong Tang
parent 1d560c37e5
commit 24778dfc9b
3 changed files with 7 additions and 3 deletions

View 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)) {

View 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);

View file

@ -341,7 +341,9 @@ public class CollationServiceTest extends TestFmwk {
private static final String KWVAL[] = {
"phonebook",
"stroke"
"stroke",
"emoji",
"eor",
};
@Test