From d60da95cd3e9d2427d1f2ef0850a3a9e485e96a1 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 30 Mar 2009 23:39:21 +0000 Subject: Fix for bug #2722617, Mac: wrong flavor written to clipboard --- macosx/ScintillaMacOSX.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'macosx') diff --git a/macosx/ScintillaMacOSX.cxx b/macosx/ScintillaMacOSX.cxx index 410d105d9..7b789af95 100644 --- a/macosx/ScintillaMacOSX.cxx +++ b/macosx/ScintillaMacOSX.cxx @@ -666,8 +666,10 @@ void ScintillaMacOSX::SetPasteboardData(PasteboardRef &theClipboard, const Selec } data = CFStringCreateExternalRepresentation ( kCFAllocatorDefault, string, kCFStringEncodingUnicode, 0 ); if (data) { + // Fixes http://bugs.activestate.com/show_bug.cgi?id=81340. + // See the bug for details PasteboardPutItemFlavor( theClipboard, (PasteboardItemID)1, - CFSTR("public.utf16-plain-text"), + CFSTR("public.utf16-external-plain-text"), data, 0 ); CFRelease(data); data = NULL; -- cgit v1.2.3