delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/08/26/15:08:50

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 1858B3858D3C
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=maxrnd.com
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=maxrnd.com
Subject: Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-5
To: cygwin AT cygwin DOT com
References: <announce.20210825220655.1544-1->
<20210826190703 DOT b4ada3ba0f8a73daadf0b14d AT nifty DOT ne DOT jp>
From: Mark Geisert <mark AT maxrnd DOT com>
Message-ID: <f6fa64ef-c389-a2c0-f955-e7824ac84c9b@maxrnd.com>
Date: Thu, 26 Aug 2021 12:08:24 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
Firefox/52.0 SeaMonkey/2.49.4
MIME-Version: 1.0
In-Reply-To: <20210826190703.b4ada3ba0f8a73daadf0b14d@nifty.ne.jp>
X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, BODY_8BITS,
KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, KAM_NUMSUBJECT, NICE_REPLY_A,
SPF_HELO_NONE, SPF_NONE, 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>
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 17QJ8mU5003687

Hi Takashi,

Takashi Yano via Cygwin wrote:
> I tested 1.4.16-5 and found another problem in putclip.
> 
> If non-ASCII chars are passed to putclip, clip board
> has garbage at the end.
> 
> Run 'echo αβγ | putclip', then paste clip board to
> notepad. 'αβγ' is pasted with a few bytes of garbage.
> 
> It seems that the longer non-ASCII string generages longer
> garbage.
> 
> Running 'echo αβγαβγαβγαβγαβγαβγ | putclip'
> and pasting clip board here, results something like:
> 
> αβγαβγαβγαβγαβγαβγ
> z⊨z⊨z⊨z⊨z⊨zἰz⊨z᪨zἰ
> 
> Sometimes, error message:
> "Couldn't write CF_TEXT format to the clipboard."
> is shown.
> 
> My locale is "ja_JP.UTF-8".
> 
> Could you please have a look?

Thanks for the report and especially the testcase.  I can reproduce this. 
Something like 'cat foo | putclip' where the file foo contains Unicode does work. 
It's the use of 'echo' with Unicode chars that fails.  I'll add that testcase to 
my procedures and respin -5 with the fix when ready.

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