From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by sourceware.org (Postfix) with ESMTPS id C407E3858C27 for ; Thu, 26 Aug 2021 10:07:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C407E3858C27 Received: from Express5800-S70 (z221123.dynamic.ppp.asahi-net.or.jp [110.4.221.123]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 17QA72Q1000630 for ; Thu, 26 Aug 2021 19:07:02 +0900 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 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-5 Message-Id: <20210826190703.b4ada3ba0f8a73daadf0b14d@nifty.ne.jp> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2021 10:07:40 -0000 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 (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 (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 (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