From 8ef4d6e2910703a36ff8e33a312d64f7d02a18d2 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 13 May 2004 16:49:02 +0000 Subject: [PATCH] unicode fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/window.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 836ae86f5c..7f8c55e784 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -312,7 +312,11 @@ static pascal OSStatus wxMacWindowServiceEventHandler( EventHandlerCallRef handl char *content = new char[textSize] ; GetScrapFlavorData (scrapRef, kTXNTextData, &pastedSize, content ); content[textSize-1] = 0 ; +#if wxUSE_UNICODE + textCtrl->WriteText( wxString( content , wxConvLocal ) ); +#else textCtrl->WriteText( wxString( content ) ) ; +#endif delete[] content ; result = noErr ; }