Bug #39736 --> charset over ride has no effect on quoting. Fix is to use the charset

we just passed in.
r=nhotta
This commit is contained in:
mscott%netscape.com 2000-07-20 07:42:14 +00:00
Родитель 1283ed7abf
Коммит 01e220ab3e
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -144,7 +144,8 @@ NS_IMETHODIMP nsMsgQuote::GetStreamListener(nsIStreamListener ** aStreamListener
}
nsresult
nsMsgQuote::QuoteMessage(const PRUnichar *msgURI, PRBool quoteHeaders, nsIStreamListener * aQuoteMsgStreamListener)
nsMsgQuote::QuoteMessage(const PRUnichar *msgURI, PRBool quoteHeaders, nsIStreamListener * aQuoteMsgStreamListener,
const PRUnichar * aMsgCharSet)
{
nsresult rv;
@ -176,6 +177,14 @@ nsMsgQuote::QuoteMessage(const PRUnichar *msgURI, PRBool quoteHeaders, nsIStream
aURL->SetSpec((const char *) modifiedUrlSpec);
// if we were given a non empty charset, then use it
if (aMsgCharSet && *aMsgCharSet)
{
nsCOMPtr<nsIMsgI18NUrl> i18nUrl (do_QueryInterface(aURL));
if (i18nUrl)
i18nUrl->SetCharsetOverRide(aMsgCharSet);
}
rv = nsComponentManager::CreateInstance(kMsgQuoteListenerCID, nsnull, NS_GET_IID(nsIMsgQuoteListener), getter_AddRefs(mQuoteListener));
if (NS_FAILED(rv)) return rv;
mQuoteListener->SetMsgQuote(this);