mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 09:21:03 +00:00
allow algorithmic converters to be used when there is no alias table
X-Trac-URL: https://ssl.icu-project.org/trac/ticket/165 git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@262 0a8b766c-62c9-45f9-954d-7f2943c9ead0
This commit is contained in:
parent
096f4b8be6
commit
c7f54c170c
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