mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
ICU-622 corrected error with instatiating aliased data
X-SVN-Rev: 2549
This commit is contained in:
parent
6eede8037e
commit
8ea49555bd
1 changed files with 6 additions and 1 deletions
|
@ -246,7 +246,12 @@ UResourceDataEntry *init_entry(const char *localeID, const char *path, UErrorCod
|
|||
if(alias != NULL && aliasLen > 0) { /* if there is actual alias - unload and load new data */
|
||||
u_UCharsToChars(alias, aliasName, u_strlen(alias)+1);
|
||||
res_unload(&(r->fData));
|
||||
res_load(&(r->fData), r->fPath, aliasName, status);
|
||||
result = res_load(&(r->fData), r->fPath, aliasName, status);
|
||||
if (result == FALSE || U_FAILURE(*status)) {
|
||||
/* we couldn't load aliased data - so we have no data */
|
||||
*status = U_USING_FALLBACK_ERROR;
|
||||
r->fBogus = U_USING_FALLBACK_ERROR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue