Use the correct attribute for transliteration. 'transliterate' is an attribute of nsIEntityConverter,

need to use 'attr_EntityAfterCharsetConv', 'attr_EntityNone' skips transliteration at all,
bug 135538, r=ducarroz, sr=sspitzer, a=asa, adt.
This commit is contained in:
nhotta%netscape.com 2002-04-06 00:19:39 +00:00
parent a1205342f2
commit 69a973b2a6
2 changed files with 2 additions and 2 deletions

View File

@ -659,7 +659,7 @@ nsresult nsMsgI18NSaveAsCharset(const char* contentType, const char *charset, co
else
// fallback for text/plain: first try transliterate then '?'
res = conv->Init(NS_ConvertUCS2toUTF8(charsetName).get(),
nsISaveAsCharset::attr_FallbackQuestionMark + nsISaveAsCharset::attr_EntityNone,
nsISaveAsCharset::attr_FallbackQuestionMark + nsISaveAsCharset::attr_EntityAfterCharsetConv,
nsIEntityConverter::transliterate);
NS_ENSURE_SUCCESS(res, res);

View File

@ -355,7 +355,7 @@ PRInt32 generate_encodedwords(char *pUTF8, const char *charset, char method, cha
conv = do_CreateInstance(NS_SAVEASCHARSET_CONTRACTID, &rv);
if(NS_SUCCEEDED(rv)) {
rv = conv->Init(charset,
nsISaveAsCharset::attr_FallbackQuestionMark + nsISaveAsCharset::attr_EntityNone,
nsISaveAsCharset::attr_FallbackQuestionMark + nsISaveAsCharset::attr_EntityAfterCharsetConv,
nsIEntityConverter::transliterate);
}
if (NS_FAILED(rv)) {