From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: /dev/clipboard corrupted
Date: Mon, 02 Jul 2012 20:40:00 -0000 [thread overview]
Message-ID: <20120702203036.GD20942@calimero.vinschen.de> (raw)
In-Reply-To: <4FED79A6.6050401@towo.net>
On Jun 29 11:47, Thomas Wolff wrote:
> On 29.06.2012 11:24, Corinna Vinschen wrote:
> >You know, we just love STCs. Send you small test program here, plus a
> >short instruction how you created the clipboard content and how to call
> >the testcase to see the problem.
> Sure, so here it is. Open clipboard.txt with notepad, ^A^C to copy
> all, then run the program to see bytes skipped.
> Actually it seems to skip as many bytes per read() as there were
> additional UTF-8 bytes (more bytes than characters) in the preceding
> read block.
> Checking the code again, variable pos seems to be used both as an
> index into the clipboard (WCHAR) and an offset to the resulting
> string length (char) which would explain the effect (not having
> checked all the details though as I'm not familiar with the used
> APIs).
Thanks for the testcase. I applied a patch which is supposed to fix the
problem. It should be in the next developer snapshot. Please give it a
try.
Thanks,
Corinna
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2012-07-02 20:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1286377403.634959.1340961856516.JavaMail.open-xchange@email.1und1.de>
2012-06-29 9:47 ` Thomas Wolff
2012-07-02 20:40 ` Corinna Vinschen [this message]
2012-06-27 22:16 Thomas Wolff
2012-06-28 8:04 ` Andy Koppe
2012-06-28 8:21 ` Corinna Vinschen
2012-06-28 18:33 ` Thomas Wolff
2012-06-29 7:24 ` Corinna Vinschen
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=20120702203036.GD20942@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--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).