delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/09/26/15:09:40

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47B15385843A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1632683379;
bh=wf3el2YN/F7w4SCLrN507KJLSEnrm8meL0hpdYTZ1Kc=;
h=In-Reply-To:References:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=dBim3X6ssBVP6Dr5ZZmsTF/nenpC5AgPCcz3BoiaiGXCZMmYFntDV1yD/Q8z/VGmE
spZ5QinOQ6Tpha6AOiVlZHUYXSR65+8Rwya64eHEHbG22jy3mjcjYSUfpMhWhRYBA7
hKyn/tZBtQzuUguRhRxKDupb4M5mB9KZk/YX4too=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EA6AF3858C60
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to:cc;
bh=GnFyUqjF/8wN72DTBzCXn3dYsPFRqGUAdcQfsHDUx4s=;
b=snzWdX/jxk5K799SqnD7chL8DzSY8fCOWPir+HjDQkQkR32VBxaInOTotm8Cpk9SrG
JuDSoLUDcaLmowQAdfbKbRFNTQdiQzarYmAjZgjeMn56U63PpatimhR3cC8juhTBSwIj
BN9Oo98IAvq+cg4TuznbNo3NMnxu1qQe2qWCUSGMw9iUVA9v5glomyMGkmRuRKvF1H4+
LtCwC/1SWNDyBc9e47nv9vKYDoCBV6O/pPGHiNb7CjP/dg5mhgP5c06Zv9GUeZrrTYrz
dKO/kKB7vTudSDYQpU/LYcjtkny4EXlPrfShZwxzgLSXuvtL8rDUQSu1eehf2QVFP2OA
7BCA==
X-Gm-Message-State: AOAM532euj2AvVyHalz7+V14+lUqdFvWdTC9pAYkOUl3TePhZWAXkz1y
E32FDpxs8MlCCjh5WG1/0wUnoD5nszHXSkQglu4jufzxjiemA/BKCg4=
X-Google-Smtp-Source: ABdhPJzQJtWyNV8hSt7Qnw5O6pHwcdZZWKVjyMisNIjHjIl5hK9dSonD/C33PkuWs8LuE1Gp7cvpc3M24uwZ6+2/zS0=
X-Received: by 2002:a37:aa51:: with SMTP id t78mr20487551qke.269.1632683348581;
Sun, 26 Sep 2021 12:09:08 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <dd433ab8-ca9b-d6e8-3dce-c69a4dc9c593@towo.net>
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>
<dd433ab8-ca9b-d6e8-3dce-c69a4dc9c593 AT towo DOT net>
Date: Sun, 26 Sep 2021 15:09:08 -0400
Message-ID: <CAD8GWsvZP00wAW_UTQ3O3PDhiJvdf2KxPabaaynGU_LfD30u8w@mail.gmail.com>
Subject: Re: Incompatible clipboard format between 32bit and 64bit cygwin
To: Thomas Wolff <towo AT towo DOT net>
X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham 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>
From: Lee via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Lee <ler762 AT gmail DOT com>
Cc: cygwin AT cygwin DOT com
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>

On 9/26/21, Thomas Wolff wrote:
>
> 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?

speed?

Maybe I'm not understanding the question, but I put a question to this
list ~3 years ago about right-click/paste into a mintty window being
**really** slow and the answer was to use getclip:
$ time d2u < /dev/clipboard > hosts-3.txt

real    0m11.372s
user    0m3.749s
sys     0m6.984s

$ time cat /dev/clipboard | tr -d '\r' > hosts-2.txt

real    0m4.405s
user    0m0.124s
sys     0m3.577s

$ time getclip -u > hosts.txt

real    0m0.734s
user    0m0.031s
sys     0m0.031s

Lee

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