зеркало из https://github.com/mozilla/gecko-dev.git
fix charset conversion problem introduced yesterday in an attempt to speed up performance
This commit is contained in:
Родитель
826cb30406
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче