delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/11/22/02:20:38

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C67E13858424
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1637565636;
bh=srP2BL8kf+A1NwtkvnNjNyI+7wRoPUiPe2yF5gjzGVM=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=MeQDC6Lk4ecdYF/aIJdDk8ii1x67AEymT54XcwSqKIJZy5M51ePesTieRUp8tH5T1
BIId9e/3lv95iXbC9u5wpxgz97FdW/XZTThXkvLQ6g+3CMdaWsM4tBHzG0hSFaI58M
WDfN/lLlo2QADSCMuYprTl26EWjQ9gCDR01/GlaM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8FEE83858406
X-Yandex-Fwd: 2
Date: Mon, 22 Nov 2021 10:08:19 +0300
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <1295287474.20211122100819@yandex.ru>
To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>, cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-8 (Test)
In-Reply-To: <f8015fd7-adc2-88c3-7ccb-d52ecb5d0e4c@dronecode.org.uk>
References: <announce DOT 20211103095939 DOT 14663-1-mark AT maxrnd DOT com>
<95DF7281-9391-4AEE-9427-7351DA47DBDE AT Denis-Excoffier DOT org>
<2f219874-accb-5c79-d513-ccc0902f88fe AT maxrnd DOT com>
<f8015fd7-adc2-88c3-7ccb-d52ecb5d0e4c AT dronecode DOT org DOT uk>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS,
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>
From: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
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 1AM7KbHj019084

Greetings, Jon Turney!

> On 21/11/2021 10:36, Mark Geisert wrote:
>> Hi Denis,
>> 
>> Denis Excoffier wrote:
>>> Hello,
>>>
>>>> On 2021-11-03 10:59, Mark Geisert wrote:
>>>>
>>>> The following packages have been uploaded to the Cygwin distribution:
>>>>
>>>> * cygutils-1.4.16-8
>>>> * cygutils-extra-1.4.16-8
>>>> * cygutils-x11-1.4.16-8
>>>
>>>
>>> The '-u' or '-d' option of getclip does not seem to work properly 
>>> under xterm.
>>> How to reproduce:
>>> 1) Open an xterm
>>> 2) Select a simple piece of text (with no line ending)
>>> 3) getclip -u
>>> 4) Observe 'Segmentation fault(core dumped)'
>>>
>>> If step 2 is replaced by ‘printf AAAA | putclip', no error.
>>> If step 3 is replaced by ‘getclip’, no error.
>>>
>>> I can’t tell whether this is new or not.
>> 
>> It appears to be old.  An xterm selection is placed on the Windows 
>> clipboard in CF_UNICODETEXT format.  'getclip' can deal with this, 
>> 'getclip -u' and 'getclip -d' cannot; they always request CF_TEXT (i.e., 
>> ANSI) format and assume they get a buffer of data.  But the formats 
>> don't match and there's no data supplied.  That's why the segfault occurs.

> Odd... I think that Windows should convert CF_UNICODETEXT to CF_TEXT if 
> needed

> See 
> https://docs.microsoft.com/en-gb/windows/win32/dataxchg/clipboard-formats#synthesized-clipboard-formats

It could convert to UNICODE, but the reverse would be lossy.


-- 
With best regards,
Andrey Repin
Monday, November 22, 2021 10:07:50

Sorry for my terrible english...

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