Cygwin 1.7.13 regression: Inheritance of /dev/clipboard filedesc fails

Charles Wilson
Sat Apr 7 04:19:00 GMT 2012

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.
* (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.


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list