mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
a1205342f2
commit
69a973b2a6
@ -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);
|
||||
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user