From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by sourceware.org (Postfix) with ESMTPS id 16C643858D35 for ; Fri, 5 Nov 2021 08:06:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 16C643858D35 Received: from Express5800-S70 (z221123.dynamic.ppp.asahi-net.or.jp [110.4.221.123]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 1A58603D023061 for ; Fri, 5 Nov 2021 17:06:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 1A58603D023061 X-Nifty-SrcIP: [110.4.221.123] Date: Fri, 5 Nov 2021 17:06:00 +0900 From: Takashi Yano To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-8 (Test) Message-Id: <20211105170600.1f652492883ce09db9447e91@nifty.ne.jp> In-Reply-To: <206bac56-73fd-074f-a6b7-77c36d28c3ba@maxrnd.com> References: <20211103220405.aae44a1ae1d3be96939a2ec9@nifty.ne.jp> <20211105122017.3c93edd3e86ce82f086098aa@nifty.ne.jp> <206bac56-73fd-074f-a6b7-77c36d28c3ba@maxrnd.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, 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: Fri, 05 Nov 2021 08:06:24 -0000 On Thu, 4 Nov 2021 22:40:40 -0700 Mark Geisert wrote: > Takashi Yano via Cygwin wrote: > > On Wed, 3 Nov 2021 22:04:05 +0900 > > Takashi Yano wrote: > >> On Wed, 3 Nov 2021 02:59:38 -0700 > >> 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 > [...] > >>> This update also provides a new feature: robust copy/paste between > >>> 32-bit and 64-bit Cygwin environments, provided both are running > >>> 3.3.0 (Test) or higher. > >> > >> I have tested the 1.4.16-8 (Test) and confirmed the following cases > >> work as expected. > >> > >> 1) Charset conversion under locale other than UTF-8. > >> 2) putclip error. > >> 3) 32-bit and 64-bit inter-operability. > > > > One small thing I noticed is that time stamp of /dev/clipboard > > is broken with the following scenario. > > 1) Run 'echo A | putclip' in 32bit cygwin > > 2) Run 'ls -l /dev/clipboard' in 64bit cygwin > > Yes indeed :-() > I'll debug this. Thanks for the report. I guess you just forgot to expand struct timespec in 32bit to 64bit layout in the following code. - if (cygNewFormat) + if (cygNewFormat == 2) { cygcb_t *clipbufX = (cygcb_t *) clipbuf; + clipbufX->cb_size = convlen; + clock_gettime (CLOCK_REALTIME, &clipbufX->ts); + memcpy (&clipbufX[1], convbuf, convlen); + } + else if (cygNewFormat == 1) + { + cygcb_old_t *clipbufX = (cygcb_old_t *) clipbuf; -- Takashi Yano