Changed to check override case before set a charset to msgWindow, bug 28869, r=mscott.

This commit is contained in:
nhotta%netscape.com 2000-07-13 20:53:57 +00:00
Родитель 7ddb4b6d13
Коммит 4096c1e8e6
1 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -224,11 +224,14 @@ MimeMultipart_parse_line (char *line, PRInt32 length, MimeObject *obj)
{
mimeEmitterUpdateCharacterSet(obj->options, cset);
// Also set this charset to msgWindow
if (!nsCRT::strcasecmp(cset, "us-ascii"))
SetMailCharacterSetToMsgWindow(obj, NS_LITERAL_STRING("ISO-8859-1"));
else
SetMailCharacterSetToMsgWindow(obj, NS_ConvertASCIItoUCS2(cset));
if (!(obj->options->override_charset))
{
// Also set this charset to msgWindow
if (!nsCRT::strcasecmp(cset, "us-ascii"))
SetMailCharacterSetToMsgWindow(obj, NS_LITERAL_STRING("ISO-8859-1"));
else
SetMailCharacterSetToMsgWindow(obj, NS_ConvertASCIItoUCS2(cset));
}
}
PR_FREEIF(ct);