From 14bce627ccad4a4e486ce602f3da5a34c699b7e8 Mon Sep 17 00:00:00 2001 From: "nhotta%netscape.com" Date: Tue, 23 Apr 2002 02:20:17 +0000 Subject: [PATCH] Changed to use a different util function which does not call the converter repeatedly in a loop in order to workaround the converter problem (bug 138578), bug 120728, r=ducarroz, sr=sspitzer. --- mailnews/mime/src/mimedrft.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/mime/src/mimedrft.cpp b/mailnews/mime/src/mimedrft.cpp index 3725c9418987..07cecf48f10d 100644 --- a/mailnews/mime/src/mimedrft.cpp +++ b/mailnews/mime/src/mimedrft.cpp @@ -1154,7 +1154,7 @@ mime_insert_forwarded_message_headers(char **body, // convert body from mail charset to UTF-8 char *utf8 = NULL; nsAutoString ucs2; - if (NS_SUCCEEDED(nsMsgI18NConvertToUnicode(nsCAutoString(mailcharset), nsCAutoString(*body), ucs2))) { + if (NS_SUCCEEDED(ConvertToUnicode(mailcharset, *body, ucs2))) { utf8 = ToNewUTF8String(ucs2); if (NULL != utf8) { PR_Free(*body);