X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/65f19af139b997f2140fd739256b002ccf82eef7..245f35816d761212279e8cf223475efb7a367553:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index 81ab68239b..02b83693bf 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -6,7 +6,7 @@ // Created: 29/01/98 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -65,6 +65,11 @@ #include "wx/mac/private.h" // includes mac headers #endif +#if defined(__MWERKS__) && wxUSE_UNICODE + #include +#endif + + // ---------------------------------------------------------------------------- // non member functions // ---------------------------------------------------------------------------- @@ -717,9 +722,8 @@ void wxLogStderr::DoLogString(const wxChar *szString, time_t WXUNUSED(t)) #if defined(__WXMAC__) && !defined(__DARWIN__) && wxUSE_GUI Str255 pstr ; - strcpy( (char*) pstr , str.c_str() ) ; - strcat( (char*) pstr , ";g" ) ; - c2pstr( (char*) pstr ) ; + wxString output = str + wxT(";g") ; + wxMacStringToPascal( output.c_str() , pstr ) ; Boolean running = false ;