[Vm-dev] primitiveClipboardText mangling line endings
David T. Lewis
lewis at mail.msen.com
Sat Oct 25 19:21:41 UTC 2014
On Sat, Oct 25, 2014 at 09:04:29PM +0200, Levente Uzonyi wrote:
>
> Hi All,
>
> I found that it's impossile to copy text from one image to another without
> losing all CR characters.
> If you open two images, and evaluate [Clipboard default
> primitiveClipboardText: #[13].] in one of them, then evaluate
> [Clipboard default primitiveClipboardText asByteArray.] in the other,
> you'll get #[] - an empty ByteArray. So CRs are lost. The same thing
> happens with longer strings too.
> Using the same method, I found that LFs and CRLFs are converted to CRs.
> I found this issue on Ubuntu 14.04 with Cog 3018 and 3104. I haven't tried
> any other VMs or OSes.
>
This has been the case on the unix VM for quite a while. I don't recall the
reason for it being done this way, and I'm not sure if it is a bug or a feature.
Does anyone remember?
Dave
More information about the Vm-dev
mailing list