Use utf8_str(), not mb_str(), for strings passed to GTK+.

All GTK+ strings must be encoded in UTF-8, not whichever encoding the current
locale happens to use.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-09-25 10:49:22 +00:00
parent d2fd662983
commit 3fce0e6480

View File

@@ -319,11 +319,13 @@ protected:
// append this stack frame's info in the dialog // append this stack frame's info in the dialog
if (!frame.GetFileName().empty() || !fncname.empty()) if (!frame.GetFileName().empty() || !fncname.empty())
{
gtk_assert_dialog_append_stack_frame(m_dlg, gtk_assert_dialog_append_stack_frame(m_dlg,
fncname.mb_str(), fncname.utf8_str(),
frame.GetFileName().mb_str(), frame.GetFileName().utf8_str(),
frame.GetLine()); frame.GetLine());
} }
}
private: private:
GtkAssertDialog *m_dlg; GtkAssertDialog *m_dlg;