From 6117713f33d227174d64b4c3b8691b88867683ab Mon Sep 17 00:00:00 2001 From: Simon Wells Date: Sat, 17 Sep 2016 11:25:58 +1200 Subject: [PATCH] Add wxwidgets patch for unicode pasteboard. Based on upstream https://github.com/wxWidgets/wxWidgets/commit/ 73fca4c37d1ee2e9e495aaa68442cdfcb4243b52 Fixes: lp:1559103 --- ...widgets-3.0.2_macosx_unicode_pasteboard.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 patches/wxwidgets-3.0.2_macosx_unicode_pasteboard.patch diff --git a/patches/wxwidgets-3.0.2_macosx_unicode_pasteboard.patch b/patches/wxwidgets-3.0.2_macosx_unicode_pasteboard.patch new file mode 100644 index 0000000000..b65f3888e0 --- /dev/null +++ b/patches/wxwidgets-3.0.2_macosx_unicode_pasteboard.patch @@ -0,0 +1,16 @@ +--- src/osx/carbon/dataobj.cpp 2016-09-17 10:26:10.000000000 +1200 ++++ src/osx/carbon/dataobj.cpp 2016-09-17 10:26:23.000000000 +1200 +@@ -458,13 +458,11 @@ bool wxDataObject::GetFromPasteboard( vo + pastelocationset = true; + } + } +-#if 0 // See https://groups.google.com/forum/#!topic/wx-dev/wFxevpvbhvQ/discussion + else if ( flavorFormat.GetType() != wxDF_PRIVATE ) + { + // indicate the expected format for the type, benefiting from native conversions eg utf8 -> utf16 + flavorType = (CFStringRef) wxDataFormat( flavorFormat.GetType()).GetFormatId(); + } +-#endif + + err = PasteboardCopyItemFlavorData( pasteboard, itemID, flavorType , &flavorData ); + if ( err == noErr )