diff options
Diffstat (limited to 'chrome/browser/gtk/options/fonts_page_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/options/fonts_page_gtk.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/gtk/options/fonts_page_gtk.cc b/chrome/browser/gtk/options/fonts_page_gtk.cc index 3f4941f..7fa7285 100644 --- a/chrome/browser/gtk/options/fonts_page_gtk.cc +++ b/chrome/browser/gtk/options/fonts_page_gtk.cc @@ -140,7 +140,8 @@ void FontsPageGtk::NotifyPrefChanged(const std::wstring* pref_name) { fixed_width_size_.GetValue()).c_str()); } if (!pref_name || *pref_name == prefs::kDefaultCharset) { - const std::wstring current_encoding = default_encoding_.GetValue(); + const std::string current_encoding = + WideToASCII(default_encoding_.GetValue()); for (size_t i = 0; i < sorted_encoding_list_.size(); i++) { if (CharacterEncoding::GetCanonicalEncodingNameByCommandId( sorted_encoding_list_[i].encoding_id) == current_encoding) { @@ -201,6 +202,6 @@ void FontsPageGtk::OnDefaultEncodingChanged(GtkComboBox* combo_box, return; } fonts_page->default_encoding_.SetValue( - CharacterEncoding::GetCanonicalEncodingNameByCommandId( - fonts_page->sorted_encoding_list_[index].encoding_id)); + ASCIIToWide(CharacterEncoding::GetCanonicalEncodingNameByCommandId( + fonts_page->sorted_encoding_list_[index].encoding_id))); } |