mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
fix charset conversion problem introduced yesterday in an attempt to speed up performance
This commit is contained in:
parent
826cb30406
commit
6fc63c9b5f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user