git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30586
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+#ifdef __WXOSX__
+#define wxConvFile wxConvUTF8
+#else
#define wxConvFile wxConvLocal
#define wxConvFile wxConvLocal
WXDLLIMPEXP_DATA_BASE(extern wxCSConv&) wxConvLocal;
WXDLLIMPEXP_DATA_BASE(extern wxCSConv&) wxConvISO8859_1;
WXDLLIMPEXP_DATA_BASE(extern wxMBConv *) wxConvCurrent;
WXDLLIMPEXP_DATA_BASE(extern wxCSConv&) wxConvLocal;
WXDLLIMPEXP_DATA_BASE(extern wxCSConv&) wxConvISO8859_1;
WXDLLIMPEXP_DATA_BASE(extern wxMBConv *) wxConvCurrent;
#if wxMBFILES && wxUSE_UNICODE
#define wxFNCONV(name) wxConvFile.cWX2MB(name)
#define wxFNSTRINGCAST wxMBSTRINGCAST
#if wxMBFILES && wxUSE_UNICODE
#define wxFNCONV(name) wxConvFile.cWX2MB(name)
#define wxFNSTRINGCAST wxMBSTRINGCAST
+#else
+#if defined( __WXOSX__ ) && wxMBFILES
+ #define wxFNCONV(name) wxConvFile.cWC2MB( wxConvLocal.cWX2WC(name) )
#else
#define wxFNCONV(name) name
#else
#define wxFNCONV(name) name
#define wxFNSTRINGCAST WXSTRINGCAST
#endif
#define wxFNSTRINGCAST WXSTRINGCAST
#endif
#if wxUSE_WCHAR_T
const wxWCharBuffer wc_str(wxMBConv& conv) const;
#endif // wxUSE_WCHAR_T
#if wxUSE_WCHAR_T
const wxWCharBuffer wc_str(wxMBConv& conv) const;
#endif // wxUSE_WCHAR_T
+#ifdef __WXOSX__
+ const wxCharBuffer fn_str() const { return wxConvFile.cWC2WX( wc_str( wxConvLocal ) ); }
+#else
const wxChar* fn_str() const { return c_str(); }
const wxChar* fn_str() const { return c_str(); }
#endif // Unicode/ANSI
// overloaded assignment
#endif // Unicode/ANSI
// overloaded assignment