}
private static void initFromResourceBundle() {
- UResourceBundle keyTypeDataRes = UResourceBundle.getBundleInstance(
+ UResourceBundle keyTypeDataRes = ICUResourceBundle.getBundleInstance(
ICUData.ICU_BASE_NAME,
"keyTypeData",
- ICUResourceBundle.ICU_DATA_CLASS_LOADER);
+ ICUResourceBundle.ICU_DATA_CLASS_LOADER,
+ ICUResourceBundle.OpenType.DIRECT);
getKeyInfo(keyTypeDataRes.get("keyInfo"));
getTypeInfo(keyTypeDataRes.get("typeInfo"));
}
}
+ @Test
+ public void TestForLanguageTagBug13776() {
+ final Locale backupDefault = Locale.getDefault();
+ try {
+ Locale loc = Locale.forLanguageTag("ar-EG-u-nu-latn");
+ Locale.setDefault(loc);
+ ULocale uloc = ULocale.forLocale(loc);
+ assertEquals("getKeywordValue(\"numbers\")", "latn", uloc.getKeywordValue("numbers"));
+ } finally {
+ Locale.setDefault(backupDefault);
+ }
+ }
+
@Test
public void TestForLanguageTag() {
final Integer NOERROR = Integer.valueOf(-1);