aboutsummaryrefslogtreecommitdiffhomepage
path: root/macosx/ScintillaMacOSX.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-03-30 23:39:21 +0000
committernyamatongwe <devnull@localhost>2009-03-30 23:39:21 +0000
commit9c4ba20d539058a2480afab3ce3aad52ae88db78 (patch)
treeccbddb7fe30de9f6c99109ec1eebe0b02a8f7e21 /macosx/ScintillaMacOSX.cxx
parentdc5dfce36759a857b12d565315a7cf251c02d5a2 (diff)
downloadscintilla-mirror-9c4ba20d539058a2480afab3ce3aad52ae88db78.tar.gz
Fix for bug #2722617, Mac: wrong flavor written to clipboard
Diffstat (limited to 'macosx/ScintillaMacOSX.cxx')
-rw-r--r--macosx/ScintillaMacOSX.cxx4
1 files changed, 3 insertions, 1 deletions
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;