Use substitions when converting gnome mime files from UTF-8 (bug 1518012)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -280,7 +280,7 @@ void wxMimeTypesManagerImpl::LoadGnomeDataFromKeyFile(const wxString& filename,
|
|||||||
{
|
{
|
||||||
wxTextFile textfile(filename);
|
wxTextFile textfile(filename);
|
||||||
#if defined(__WXGTK20__) && wxUSE_UNICODE
|
#if defined(__WXGTK20__) && wxUSE_UNICODE
|
||||||
if ( !textfile.Open(wxConvUTF8) )
|
if ( !textfile.Open(wxMBConvUTF8(wxMBConvUTF8::MAP_INVALID_UTF8_TO_OCTAL)) )
|
||||||
#else
|
#else
|
||||||
if ( !textfile.Open() )
|
if ( !textfile.Open() )
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user