bug 302275: newly added news server's default charset does not inherit from mailnews.view_default_charset localized preference patch by Shaohua Wen (r=jshin, sr=bienvenu, a=benjamin)

This commit is contained in:
jshin%mailaps.org 2005-07-28 14:34:38 +00:00
parent d3fe1c05b4
commit 2a12b93f9f

View File

@ -331,7 +331,7 @@ nsNntpIncomingServer::GetCharset(nsACString & aCharset)
//mailnews.view_default_charset setting and set it as per-server preference.
if(serverCharset.IsEmpty()){
nsXPIDLString defaultCharset;
rv = NS_GetUnicharPreferenceWithDefault(nsnull,
rv = NS_GetLocalizedUnicharPreferenceWithDefault(nsnull,
PREF_MAILNEWS_VIEW_DEFAULT_CHARSET,
NS_LITERAL_STRING("ISO-8859-1"), defaultCharset);
LossyCopyUTF16toASCII(defaultCharset,serverCharset);