ICU-3301 dont canonicalize the locale name when fallback is disabled

X-SVN-Rev: 15519
This commit is contained in:
Ram Viswanadha 2004-05-25 00:08:41 +00:00
parent 612cb5982a
commit e412fc0d3c

View File

@ -341,7 +341,6 @@ public abstract class UResourceBundle extends ResourceBundle{
UResourceBundle b = null; UResourceBundle b = null;
if(disableFallback){ if(disableFallback){
ULocale defaultLocale = ULocale.getDefault(); ULocale defaultLocale = ULocale.getDefault();
localeName = ULocale.getBaseName(localeName);
String fullName = ICUResourceBundleReader.getFullName(baseName, localeName); String fullName = ICUResourceBundleReader.getFullName(baseName, localeName);
cacheKey.setKeyValues(root, fullName, defaultLocale); cacheKey.setKeyValues(root, fullName, defaultLocale);
b = loadFromCache(cacheKey); b = loadFromCache(cacheKey);