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:
Markus Scherer 1999-11-30 23:17:48 +00:00
parent 096f4b8be6
commit c7f54c170c

View file

@ -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;
}