ICU-184 error code when opening a non-existing default bundle fixed
X-SVN-Rev: 1517
This commit is contained in:
parent
7048b11e49
commit
7db082375a
@ -302,8 +302,12 @@ UResourceDataEntry *entryOpen(const char* path, const char* localeID, UErrorCode
|
||||
umtx_lock(&resbMutex);
|
||||
r = init_entry(localeID, path, &initstatus);
|
||||
uprv_strcpy(name, r->fName);
|
||||
hasRealData = (r->fBogus == U_ZERO_ERROR);
|
||||
isDefault = (uprv_strcmp(name, uloc_getDefault()) == 0);
|
||||
hasRealData = (r->fBogus == U_ZERO_ERROR);
|
||||
if(isDefault == TRUE && r->fBogus != U_ZERO_ERROR) { /*there is a case when default locale is invalid - we have to be graceful about it*/
|
||||
r->fBogus = U_USING_DEFAULT_ERROR;
|
||||
}
|
||||
|
||||
isRoot = (uprv_strcmp(name, kRootLocaleName) == 0);
|
||||
|
||||
/*Fallback data stuff*/
|
||||
|
Loading…
Reference in New Issue
Block a user