ICU-4162 fix failure

X-SVN-Rev: 16662
This commit is contained in:
Ram Viswanadha 2004-10-28 21:43:55 +00:00
parent 371326b825
commit e7aa2c2e3a

View File

@ -362,7 +362,7 @@ public final class UScript {
// return null;
//}
//non existent locale check
if(rb.getLoadingStatus()==ICUResourceBundle.FROM_DEFAULT){
if(rb.getLoadingStatus()==ICUResourceBundle.FROM_DEFAULT && !locale.equals(ULocale.getDefault())){
return null;
}
ICUResourceBundle sub = rb.get("LocaleScript");