From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6668 invoked by alias); 28 Jun 2012 08:04:10 -0000 Received: (qmail 6604 invoked by uid 22791); 28 Jun 2012 08:04:03 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-we0-f171.google.com (HELO mail-we0-f171.google.com) (74.125.82.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Jun 2012 08:03:42 +0000 Received: by wejx9 with SMTP id x9so1433896wej.2 for ; Thu, 28 Jun 2012 01:03:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.97.201 with SMTP id ec9mr2351306wib.12.1340870621557; Thu, 28 Jun 2012 01:03:41 -0700 (PDT) Received: by 10.216.170.149 with HTTP; Thu, 28 Jun 2012 01:03:41 -0700 (PDT) In-Reply-To: <4FEB863A.7030108@towo.net> References: <4FEB863A.7030108@towo.net> Date: Thu, 28 Jun 2012 08:04:00 -0000 Message-ID: Subject: Re: /dev/clipboard corrupted From: Andy Koppe To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-06/txt/msg00523.txt.bz2 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 sends. Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple