X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.7 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL
X-Spam-Check-By: sourceware.org
Message-ID: <4F7FC030.1080609@cwilson.fastmail.fm>
Date: Sat, 07 Apr 2012 00:18:56 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Cygwin 1.7.13 regression: Inheritance of /dev/clipboard filedesc fails
References: <4F7F4AB7.6000106@t-online.de> <2BF01EB27B56CC478AD6E5A0A28931F2043AD4BC@A1DAL1SWPES19MB.ams.acs-inc.net> <4F7F55A0.2030705@t-online.de>
In-Reply-To: <4F7F55A0.2030705@t-online.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 4/6/2012 4:44 PM, Christian Franke wrote:
> This is unrelated. Apparently getclip is no longer compatible with
> current cygwin. The cygwin native clipboard format has changed. New
> format starts with a timestamp which is interpreted as data size by
> getclip.

Ah, I missed that change:

2012-03-26  Corinna Vinschen  <...>

* fhandler.h (class fhandler_dev_clipboard): Add fstat method.
* fhandler_clipboard.cc (cygcb_t): New type for Cygwin-specific
clipboard format.
(set_clipboard): Use new clipboard format to allow setting a timestamp.
(fhandler_dev_clipboard::fstat): New method.  Read modification and
access timestamp as well as length from clipboard data.
(fhandler_dev_clipboard::read): Use new clipboard format.

I'll try to get an update out after Easter (incl. some other pending 
cygutils changes).  Although CYGWIN_NATIVE_CLIPBOARD version # would be 
cleaner, it isn't really needed.  Since getclip is a cygwin program, and 
we already know that all interacting cygwin processes must be using the 
same cygwin dll, it's easy enough for getclip.exe to check the running 
cygwin's version and act appropriately -- given knowledge of when the 
clipboard format was changed.

--
Chuck

--
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

