ICU-1939 fix name comparison for purely algorithmic (intrinsic) converters: use loose match, not strcmp
X-SVN-Rev: 8856
This commit is contained in:
parent
23c6da8207
commit
2d9b8643d9
@ -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];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user