delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/07/00:19:30

X-Recipient: archive-cygwin AT delorie DOT 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 AT cwilson DOT fastmail DOT 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 AT cygwin DOT com
Subject: Re: Cygwin 1.7.13 regression: Inheritance of /dev/clipboard filedesc fails
References: <4F7F4AB7 DOT 6000106 AT t-online DOT de> <2BF01EB27B56CC478AD6E5A0A28931F2043AD4BC AT A1DAL1SWPES19MB DOT ams DOT acs-inc DOT net> <4F7F55A0 DOT 2030705 AT t-online DOT de>
In-Reply-To: <4F7F55A0.2030705@t-online.de>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019