Clipboard.SetAsText includes an extra #0 character
Original Reporter info from Mantis: zpeterson @boramis
-
Reporter name: Zoë Peterson
Original Reporter info from Mantis: zpeterson @boramis
- Reporter name: Zoë Peterson
Description:
When using Clipboard.AsText to copy text to the Cocoa clipboard, an extra invalid #0 character is inserted at the end. You can see the behavior by selecting and copying text in SynEdit then pasting in Xcode. If you paste in the middle of a comment it will break syntax highlighting, and pressing delete will seem to pause for one delete keystroke since it's deleting the invisible #0 character. Copying/pasting within an LCL application won't show the issue since GetAsText silently strips a trailing #0 if one exists.
Patch attached that disables the (LCL) behavior for the Cocoa widgetset
Mantis conversion info:
- Mantis ID: 35984
- Version: 2.0.4
- Fixed in revision: 61731 (#3b11854e)