This is the mail archive of the
mailing list for the Cygwin project.
Re: /dev/clipboard corrupted
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 28 Jun 2012 09:03:41 +0100
- Subject: Re: /dev/clipboard corrupted
- References: <4FEB863A.firstname.lastname@example.org>
On 27 June 2012 23:16, Thomas Wolff wrote:
> If the clipboard contains large data, the contents retrieved from
> /dev/clipboard gets corrupted.
> I compared the following in a few cases:
> * cat /dev/clipboard or cp /dev/clipboard (which are equal)
> * mouse-paste into mintty, read with cat
> * read /dev/clipboard within application
> and I found all three results to be different, the correct one sometimes
> being cat /dev/clipboard but not always.
> In today's case, the differences occured at byte 10240 and 65536
> respectively, thus 10K-1 bytes or 64K-1 bytes being equal.
I don't know anything about that problem, but note that mintty
accesses the clipboard directly via the Windows API, and that it
converts both Windows line endings ("\r\n") and Unix line endings
("\n") to carriage returns ("\r"), because that's what the Enter key
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple