ICU-1939 fix name comparison for purely algorithmic (intrinsic) converters: use loose match, not strcmp

X-SVN-Rev: 8856
This commit is contained in:
Markus Scherer 2002-06-12 16:05:28 +00:00
parent 23c6da8207
commit 2d9b8643d9

View File

@ -209,7 +209,7 @@ getAlgorithmicTypeFromName(const char *realName)
{
int i;
for(i=0; i<sizeof(cnvNameType)/sizeof(cnvNameType[0]); ++i) {
if(uprv_strcmp(realName, cnvNameType[i].name)==0) {
if(ucnv_compareNames(realName, cnvNameType[i].name)==0) {
return converterData[cnvNameType[i].type];
}
}