X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f5fb6871865e08929a113dc23f8741023fdcae72..caf95d2aef2a88279df7f249d3b9440e18941d7d:/include/wx/strconv.h diff --git a/include/wx/strconv.h b/include/wx/strconv.h index 5d93e872ce..72423f8c77 100644 --- a/include/wx/strconv.h +++ b/include/wx/strconv.h @@ -210,7 +210,12 @@ private: bool m_deferred; }; +#ifdef __WXOSX__ +#define wxConvFile wxConvUTF8 +#else #define wxConvFile wxConvLocal +#endif + WXDLLIMPEXP_DATA_BASE(extern wxCSConv&) wxConvLocal; WXDLLIMPEXP_DATA_BASE(extern wxCSConv&) wxConvISO8859_1; WXDLLIMPEXP_DATA_BASE(extern wxMBConv *) wxConvCurrent; @@ -241,8 +246,12 @@ WXDLLIMPEXP_DATA_BASE(extern wxMBConv *) wxConvCurrent; #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 +#endif #define wxFNSTRINGCAST WXSTRINGCAST #endif