]> git.saurik.com Git - wxWidgets.git/commitdiff
Use substitions when converting gnome mime files from UTF-8 (bug 1518012)
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Mon, 17 Jul 2006 09:39:11 +0000 (09:39 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Mon, 17 Jul 2006 09:39:11 +0000 (09:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/mimetype.cpp

index 55385d3a765867ba848ed6bf8e2f0e627d89534e..e2e68bd09a8ffdabfa24dda23e0aeb15e3c4f2f6 100644 (file)
@@ -280,7 +280,7 @@ void wxMimeTypesManagerImpl::LoadGnomeDataFromKeyFile(const wxString& filename,
 {
     wxTextFile textfile(filename);
 #if defined(__WXGTK20__) && wxUSE_UNICODE
-    if ( !textfile.Open(wxConvUTF8) )
+    if ( !textfile.Open(wxMBConvUTF8(wxMBConvUTF8::MAP_INVALID_UTF8_TO_OCTAL)) )
 #else
     if ( !textfile.Open() )
 #endif