delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/08/26/06:11:08

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9D013858402
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1629972666;
bh=cvWpSiUrnLN7jMvqSQV23V5pOK5poJlcsWBJVD8ibwU=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=EC12aJLDNBmSYXxBxKW5AzgIuMdDiqdoflIJFFUhsqro2DVnjAclktt50epW++xkr
Ae/w5UNiBgTSRr7eFnto7rBq5/biZlD3gE1icQZJ4lTpdOgoxApkM0TTwgsGL1sasK
IcsLtCI44zF//hrrSv3yhk4DW+jKvKD4l0Hj85zc=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C407E3858C27
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 17QA72Q1000630
X-Nifty-SrcIP: [110.4.221.123]
Date: Thu, 26 Aug 2021 19:07:03 +0900
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-5
Message-Id: <20210826190703.b4ada3ba0f8a73daadf0b14d@nifty.ne.jp>
In-Reply-To: <announce.20210825220655.1544-1->
References: <announce.20210825220655.1544-1->
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT,
NICE_REPLY_A, 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: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
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 17QAB7iq019957

Hi Mark,

On Wed, 25 Aug 2021 22:21:43 -0700
Mark Geisert wrote:
> The following packages have been uploaded to the Cygwin distribution:
> 
> * cygutils-1.4.16-5
> * cygutils-extra-1.4.16-5
> * cygutils-x11-1.4.16-5
> 
> This release fixes a couple of issues reported in -4test.  I decided
> rather than respinning -4 as a non-test release, to just bump to -5.
> 
> Unicode capture from the Windows clipboard with getclip and Unicode
> display to the Windows clipboard with putclip should now be working
> properly.  Thank you to those who reported issues with the previous
> builds, both privately and on the main Cygwin mailing list.
> 
> Excerpt from ChangeLog follows...
> 2021-08-24  Mark Geisert  <mark AT maxrnd DOT com>  (release 1.4.16-5)
> 
>         * src/clip/putclip.c: Fix broken Unicode support. Don't GlobalFree a
>         handle that's been transferred to the system by SetClipboardData().
>         Thanks to Christian Franke for that last bit.
> 
> 2021-08-15  Mark Geisert  <mark AT maxrnd DOT com>  (release 1.4.16-4test)
> 
>         * Makefile.am: Add -lkernel32 to src_clip_getclip_LDADD.  This somehow
>         didn't make it into the released -3 package.  Thank you Takashi Yano.
>         * Fix maintainer build environment issues that caused cygstart crash
>         on non-AVX user systems: Thank you Takashi Yano, Brian Inglis, Achim
>         Gratz and user Jay Abel for reporting the issue.
>         * src/cygdrop/cygdrop.cc: Fix crash with recent gcc and fix printf
>         format strings. Thank you Christian Franke.
> 
> 2021-07-05  Mark Geisert  <mark AT maxrnd DOT com>  (release 1.4.16-3)
> 
>         * src/clip/getclip.c: Add Unicode support.
> 
> I plan to update the public source repository for cygutils over the next
> couple weeks.  Then after that it's revisiting the whole source tree to
> make corrections to allow compilation with gcc 11.  That will be 1.4.17.

Thanks for fixing.

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?

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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