fix charset conversion problem introduced yesterday in an attempt to speed up performance

This commit is contained in:
bienvenu%netscape.com 1999-09-21 22:18:35 +00:00
parent 826cb30406
commit 6fc63c9b5f

View File

@ -1558,7 +1558,7 @@ PRInt32 MIME_ConvertCharset(const PRBool autoDetection, const char* from_charset
// PL_strcpy(srcCharset, PL_strcasecmp(from_charset, "us-ascii") ? (char *) from_charset : "iso-8859-1");
// PL_strcpy(dstCharset, PL_strcasecmp(from_charset, "us-ascii") ? (char *) to_charset : "iso-8859-1");
res = aMimeCharsetConverterClass.Initialize(from_charset, from_charset, autoDetection, -1);
res = aMimeCharsetConverterClass.Initialize(from_charset, to_charset, autoDetection, -1);
if (res != -1) {
res = aMimeCharsetConverterClass.Convert(inBuffer, inLength, outBuffer, outLength, NULL);