]> git.saurik.com Git - wxWidgets.git/commitdiff
Use utf8_str(), not mb_str(), for strings passed to GTK+.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Sep 2012 10:49:22 +0000 (10:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 25 Sep 2012 10:49:22 +0000 (10:49 +0000)
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

src/gtk/utilsgtk.cpp

index f68fddcbf0e24ded25df7e90565204488367b80d..c075851073e9797fe3264483ecefa1941b7c296a 100644 (file)
@@ -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: