mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-21641 Fix "emoji" and "eor" for Collator::getKeywordValues
See #1743
This commit is contained in:
parent
1d560c37e5
commit
24778dfc9b
3 changed files with 7 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -341,7 +341,9 @@ public class CollationServiceTest extends TestFmwk {
|
|||
|
||||
private static final String KWVAL[] = {
|
||||
"phonebook",
|
||||
"stroke"
|
||||
"stroke",
|
||||
"emoji",
|
||||
"eor",
|
||||
};
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Reference in a new issue