• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Pasteboard corrupts data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: SOLVED Unable to centre align NSCell attributed title and alternate attributed title
  • Next by Date: Re: PDFView not rendering pages on scroll
  • Previous by thread: [MEET] Toronto CocoaHeads / tacow - November 12
  • Next by thread: Re: Codesigning 3rd party framework
  • Index(es):
    • Date
    • Thread