]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use use UTF-8 to PUA mapping hack, it's not necessary any more now that wxConvA...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Aug 2007 20:21:16 +0000 (20:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Aug 2007 20:21:16 +0000 (20:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/mimetype.cpp

index 00d3b578472c67ed86d4f7fcf65fe6af8eaa2a74..1a249e06112c87b9fab0e40e0cc43d76ceb5aa6b 100644 (file)
@@ -141,19 +141,6 @@ public:
         wxString sTmp = GetLine(i).AfterFirst(wxT('='));
         return sTmp;
     }
-
-protected:
-    // we override this virtual method because we want to always use UTF-8
-    // conversion allowing for invalid characters as MIME information files
-    // often contain lines in different encodings and can't be read using any
-    // single conversion in Unicode build, so we just try to read what we can
-    // suing the most common encoding (UTF-8 is almost ubiquitous nowadays) and
-    // ignore the rest
-    virtual bool OnRead(const wxMBConv& WXUNUSED(conv))
-    {
-        return wxTextFile::OnRead(
-                    wxMBConvUTF8(wxMBConvUTF8::MAP_INVALID_UTF8_TO_PUA));
-    }
 };
 
 // ----------------------------------------------------------------------------