]> git.saurik.com Git - wxWidgets.git/commitdiff
Attempted compile fix
authorJulian Smart <julian@anthemion.co.uk>
Wed, 30 Mar 2005 08:00:45 +0000 (08:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 30 Mar 2005 08:00:45 +0000 (08:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/strconv.h

index 0e32d15655be56d1be03b2358b9e4c91d778417b..602ce081cccdec5625bb47aa4317d27b063ed011 100644 (file)
@@ -211,6 +211,31 @@ private:
     bool m_deferred;
 };
 
+#ifdef __WXGTK20__
+
+// ----------------------------------------------------------------------------
+// wxConvBrokenFileNames is made for GTK2 in Unicode mode when
+// files are accidentally written in an encoding which is not
+// the system encoding. Typically, the system encoding will be
+// UTF8 but there might be files stored in ISO8859-1 on disk.
+// ----------------------------------------------------------------------------
+
+class wxConvBrokenFileNames : public wxMBConv
+{
+public:
+    wxConvBrokenFileNames();
+    virtual ~wxConvBrokenFileNames() { delete m_conv; }
+
+    virtual size_t MB2WC(wchar_t *outputBuf, const char *psz, size_t outputSize) const;
+    virtual size_t WC2MB(char *outputBuf, const wchar_t *psz, size_t outputSize) const;
+
+private:
+    // the conversion object we forward to
+    wxMBConv *m_conv;
+};
+#endif
+// __WXGTK20__
+
 // ----------------------------------------------------------------------------
 // declare predefined conversion objects
 // ----------------------------------------------------------------------------