Pasteboard corrupts data
Pasteboard corrupts data
- Subject: Pasteboard corrupts data
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 04 Nov 2013 14:42:20 +0700
When I select in an NSTextView with isRichText = YES the character "。" = HALFWIDTH IDEOGRAPHIC FULL STOP U+FF61 Utf-8: EF BD A1and then look at the pasteboards (using Clipboard Viewer Version 4.0) I see:
public-utf8-plain-text and NSStringPasteboardType both have: "ef bd a1" which is ok.
But public-utf16-external-plain-text has: "ff fe 02 30" which is IDEOGRAPHIC FULL STOP U+3002, which is the char returned by ...StringWithCompatibilityMapping(U+FF61).
That is: copy paste between rich texts changes the copied characters. Reminds me of this story: <http://www.theregister.co.uk/2013/08/06/xerox_copier_flaw_means_dodgy_numbers_and_dangerous_designs/>
Bug or feature?
I think this rather annoying - but maybe there is a very good reason for this strange behaviour.
Gerriet.
10.9
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden