mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
d3fe1c05b4
commit
2a12b93f9f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user