From: Vadim Zeitlin Date: Tue, 25 Sep 2012 10:49:22 +0000 (+0000) Subject: Use utf8_str(), not mb_str(), for strings passed to GTK+. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3fce0e64806d68067b4987c6756ab905a33c9b8d 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 --- diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index f68fddcbf0..c075851073 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -319,10 +319,12 @@ protected: // append this stack frame's info in the dialog if (!frame.GetFileName().empty() || !fncname.empty()) + { gtk_assert_dialog_append_stack_frame(m_dlg, - fncname.mb_str(), - frame.GetFileName().mb_str(), + fncname.utf8_str(), + frame.GetFileName().utf8_str(), frame.GetLine()); + } } private: