fix charset is caseless bug

git-svn-id: svn://10.0.0.236/trunk@17724 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ftang%netscape.com 1999-01-14 07:46:17 +00:00
parent 91bf06000f
commit 08a09d5e00

View File

@ -294,7 +294,7 @@ nsresult nsCharsetConverterManager::GetCharsetConverter(
GetCharsetName(aSrc, &str);
*aResult = NULL;
for (PRInt32 i=0; i<aSize; i++) if (str->Equals(*(aArray[i].mCharset))) {
for (PRInt32 i=0; i<aSize; i++) if (str->EqualsIgnoreCase(*(aArray[i].mCharset))) {
res = nsRepository::CreateInstance(*(aArray[i].mCID),NULL,*aCID,aResult);
break;
}