From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20677 invoked by alias); 29 Jun 2012 07:24:04 -0000 Received: (qmail 20550 invoked by uid 22791); 29 Jun 2012 07:23:38 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Fri, 29 Jun 2012 07:23:21 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 179FD2C0074; Fri, 29 Jun 2012 09:23:19 +0200 (CEST) Date: Fri, 29 Jun 2012 07:24:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: /dev/clipboard corrupted Message-ID: <20120629072319.GA30342@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <4FEB863A.7030108@towo.net> <20120628082021.GF17071@calimero.vinschen.de> <4FECA35E.7060302@towo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4FECA35E.7060302@towo.net> User-Agent: Mutt/1.5.21 (2010-09-15) 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/msg00556.txt.bz2 On Jun 28 20:33, Thomas Wolff wrote: > Am 28.06.2012 10:20, schrieb Corinna Vinschen: > >On Jun 28 00: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 can't reprocude this. There's also nothing in the /dev/clipboard > >code which would rely on a 10K buffer or so. 64K, yes. But still, > >I tried with wordpad, vi, mintty, cat, and cp with a text file of > >about 90K. No problems. Do you have any reproducible testcase? > Not really reproducible (maybe later) but some more observations. > I made a small test program to read /dev/clipboard directly with > different buffer sizes. You know, we just love STCs. Send you small test program here, plus a short instruction how you created the clipboard content and how to call the testcase to see the problem. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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