From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated: cygutils 1.4.16-8 (Test)
Date: Fri, 5 Nov 2021 17:06:00 +0900 [thread overview]
Message-ID: <20211105170600.1f652492883ce09db9447e91@nifty.ne.jp> (raw)
In-Reply-To: <206bac56-73fd-074f-a6b7-77c36d28c3ba@maxrnd.com>
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 <takashi.yano@nifty.ne.jp>
next prev parent reply other threads:[~2021-11-05 8:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-03 9:59 Mark Geisert
2021-11-03 13:04 ` Takashi Yano
2021-11-04 4:31 ` Mark Geisert
2021-11-04 4:58 ` Thomas Wolff
2021-11-04 8:47 ` Mark Geisert
2021-11-04 20:08 ` Brian Inglis
2021-11-05 3:20 ` Takashi Yano
2021-11-05 5:40 ` Mark Geisert
2021-11-05 8:06 ` Takashi Yano [this message]
2021-11-05 8:53 ` Mark Geisert
2021-11-14 17:23 ` Denis Excoffier
2021-11-14 17:55 ` Mark Geisert
2021-11-14 17:55 ` Brian Inglis
2021-11-21 10:36 ` Mark Geisert
2021-11-21 14:51 ` Jon Turney
2021-11-22 7:08 ` Andrey Repin
2021-11-22 8:14 ` Takashi Yano
2021-11-23 9:08 ` Mark Geisert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211105170600.1f652492883ce09db9447e91@nifty.ne.jp \
--to=takashi.yano@nifty.ne.jp \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).