From 3dce1c03f56ace8d8c7342eeec1cc42a0154bae5 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Tue, 30 Nov 1999 23:17:48 +0000 Subject: [PATCH] ICU-165 allow algorithmic converters to be used when there is no alias table X-SVN-Rev: 262 --- icu4c/source/common/ucnv_bld.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/icu4c/source/common/ucnv_bld.c b/icu4c/source/common/ucnv_bld.c index 19063984998..4fee03d1129 100644 --- a/icu4c/source/common/ucnv_bld.c +++ b/icu4c/source/common/ucnv_bld.c @@ -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; }