X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.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@cygwin.com
References: <announce.20210825220655.1544-1->
 <20210826190703.b4ada3ba0f8a73daadf0b14d@nifty.ne.jp>
From: Mark Geisert <mark@maxrnd.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@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
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

