From 99f677aef34857e9cd19adba12a61685179d0428 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 17 Aug 2003 16:25:37 +0000 Subject: [PATCH] unicode wxMac CW fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/xml/xml.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index 7fc49292a2..056cc19565 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -580,7 +580,13 @@ inline static void OutputString(wxOutputStream& stream, const wxString& str, { if (str.IsEmpty()) return; #if wxUSE_UNICODE - const wxWX2MBbuf buf(str.mb_str(convFile ? *convFile : wxConvUTF8)); + const wxWX2MBbuf buf(str.mb_str( +#ifdef __MWERKS__ + *(convFile ? convFile : &wxConvUTF8) +#else + convFile ? *convFile : wxConvUTF8 +#endif + )); stream.Write((const char*)buf, strlen((const char*)buf)); #else if ( convFile == NULL )