mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-165 allow algorithmic converters to be used when there is no alias table
X-SVN-Rev: 262
This commit is contained in:
parent
f7f02c918a
commit
3dce1c03f5
1 changed files with 7 additions and 7 deletions
|
@ -641,17 +641,17 @@ UConverter *
|
|||
const char *realName;
|
||||
UConverter *myUConverter = NULL;
|
||||
UConverterSharedData *mySharedConverterData = NULL;
|
||||
UErrorCode internalErrorCode = U_ZERO_ERROR;
|
||||
|
||||
if (U_FAILURE (*err))
|
||||
return NULL;
|
||||
|
||||
realName = ucnv_io_getConverterName(converterName, err);
|
||||
if (U_FAILURE(*err)) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (realName == NULL) {
|
||||
/* set the input name in case the converter was added without updating the alias table */
|
||||
realName = ucnv_io_getConverterName(converterName, &internalErrorCode);
|
||||
if (U_FAILURE(internalErrorCode) || realName == NULL) {
|
||||
/*
|
||||
* set the input name in case the converter was added
|
||||
* without updating the alias table, or when there is no alias table
|
||||
*/
|
||||
realName = converterName;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue