delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/09/26/14:41:59

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 42A103858C60
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=towo.net
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo.net
Subject: Re: Incompatible clipboard format between 32bit and 64bit cygwin
To: cygwin AT cygwin DOT com
References: <20210926103325 DOT 5c17eb11c3c8a56c377199a8 AT nifty DOT ne DOT jp>
<584f536c-b108-b562-b940-798ec2847c68 AT maxrnd DOT com>
<0b13b9ac-583f-ab72-4202-f8b187946d93 AT towo DOT net>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <dd433ab8-ca9b-d6e8-3dce-c69a4dc9c593@towo.net>
Date: Sun, 26 Sep 2021 20:41:29 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
MIME-Version: 1.0
In-Reply-To: <0b13b9ac-583f-ab72-4202-f8b187946d93@towo.net>
X-Provags-ID: V03:K1:Qjgp/Nul4nakpxi0A7q5tsnSAM2DWhTSUqvJSwhP4YpSErRJJWn
xUd2mYCyA8IhjWwS2Jf1Dgd8Bf9CRabcZrZNuXlTAHGcgsYYDmuGZ/jwyXYhItbcVYWf56Z
lTwdo6m9sgkSm4EsFVdOwCGShRSRuBPFGgEww5MmwHfsFrtVNJt1R9EfK8OLSEKkAEWW6HR
mj8mL0UB55NOoFaoRIPGA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:LEUsIBi8YUM=:xIZBiOwZA2USb2/jZ82GYU
I6ndbMH02GtB7ADoHjc9eQPCzIk7py2SXz4ISKim9XA8CBh1E90Ba+HGwkS3p7x8VaJ5KXDZK
kmGhaWsgbYEzHlYGih0VvMUMU2RUuwR8k9CHato+tG1L8/RHtHBzm/quDa6bBdLRObstqlQya
1vxEz4xprrNmGuHk7g0mT1znnNKXQrSSIxADJ7wwEJTz2LhZni+mpPk8jZvSzrBnnOB9lcnYF
qRAsFWioP2WTfdBpRNv4I7nhV7AD40K9pAUMV8CO3yWAbhPsZfr21y9RgwFULm4T7vLgGSwmB
NKeXx2MmdYzonas22yNsL3bdB+6CWtljayhpcodJexV4/w/PXlaLIh0RGc4osxIufpfJjxIK5
qVv0KxAI2C3EpysUvbOrDCxrbzpQ4FK8HhH2EwiY6v6/dBJhm9n6+xKjrlvBnYae/pyf5CfU8
lpVvjs3qHTNir59hiIuiUH8Ady+Z11CTzbPLGV2Y+vzi0v43IofZi2MRytgOXLfNRvq6kbTDV
BXV0Hri2K/U0NCHWImr01c5V6ls+hw7YF4+2UhVcTWyHVpmcynngKAoxyGEMEgQnxPMlq+AL0
CJ3C5wZfbIUefj+Vnor48uBjDThQ6I7gmakYybt+wz7hSsfbOlKrTrTxrI3FDu3Ahcg+tovO9
pgLtlG7I+ELAGJZnMUFDcJTjdFCOULNHHhjr/92AL7G9BYoRmE7exIVYVaAkgcg7CGNWmg1HO
7uY9MC4hkCnqiE076oLcYpF3cqrPmHP7muU+sA==
X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, BODY_8BITS,
KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 18QIfxVR023373

Am 26.09.2021 um 20:37 schrieb Thomas Wolff:
>
> Am 26.09.2021 um 11:50 schrieb Mark Geisert:
>> Hi Takashi,
>>
>> Takashi Yano via Cygwin wrote:
>>> I noticed that cygwin clipboard is not compatible
>>> between 32bit and 64bit cygwin.
>>>
>>> If I run 'echo AAAAAAAA > /dev/clipboard' in 32bit cygwin,
>>> and run 'cat /dev/clipboard' in 64bit cygwin, this result in
>>> cat: /dev/clipboard: Bad address
>>>
>>> This is because the structure
>>> typedef struct
>>> {
>>>    timestruc_t   timestamp;
>>>    size_t    len;
>>>    char      data[1];
>>> } cygcb_t;
>>> defined in fhandler_clipboard.cc has different size.
>>>
>>> Is this the known issue?
>>
>> I doubt anybody has ever tried what you did. 
> I have and it failed; I just didn't find it important enough to report 
> it here... Thanks for the plan to fix it.
>
>> I have been testing getclip and putclip between 32- and 64-bit 
>> environments, but neglected to test Cygwin-internal clipboard format 
>> that prepends cygcb_t to the user-supplied data. 
As we're at it, what's the purpose of a cygwin-internal clipboard format 
at all?
Copy/paste between 32bit/64bit mintty works; mintty uses Windows 
CF_UNICODETEXT clipboard format.
Thomas

>> So getclip and putclip will need fixing as well.
>>
>> I will submit a Cygwin patch to fix /dev/clipboard usage and a 
>> similar patch to cygutils for the utilities.
>>
>> I appreciate your help in uncovering and investigating bugs in 
>> clipboard support.
>> Thanks & Regards,
>>
>> ..mark
>>
>
>


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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