| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| q=dns; s=default; b=om87dmBAtYqeMx9cPdEb/hybhdIkBtcad2TVndp2Lty | |
| S9mO9Z5Q34gkb4nelEGB4Os/rPtPT/Qwe6nNxYbpbvxpliznwiQtF781L+AxNpIV | |
| 6ODVC5VS5tVqti8FqEI53Gkb6tM2ysPfeqefYdFsRJDobnZhx8ZzpCUqgqL6GsXg | |
| = | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:message-id:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type:content-transfer-encoding; | |
| s=default; bh=6u3qnSgyiBKBJjVeqaWRo8xxORU=; b=tPS2ITRw64UZcv8bU | |
| cBdtZnkX2Y7eNZDNoIJQn7rf15s9Smz2SqCvloP09wiUoS+9eJHyn3H6npa193ro | |
| 521IsD9vdI9qbBDfE9MM7THdd5ivEBgQanoimkh+mdGFxpfXb0MniNV6K2gQmfzW | |
| WOa1qjaehatjKpUMInbufeX3Ns= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-Spam-SWARE-Status: | No, score=-1.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,RDNS_NONE,SPF_NEUTRAL autolearn=no version=3.3.1 |
| Message-ID: | <5203C238.6010809@cs.utoronto.ca> |
| Date: | Thu, 08 Aug 2013 12:07:20 -0400 |
| From: | Ryan Johnson <ryan DOT johnson AT cs DOT utoronto DOT ca> |
| User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Redirecting cat and paste to file gives garbage |
| References: | <5203A1A3 DOT 30200 AT cs DOT utoronto DOT ca> <20130808153250 DOT GN16868 AT calimero DOT vinschen DOT de> <20130808154842 DOT GQ16868 AT calimero DOT vinschen DOT de> |
| In-Reply-To: | <20130808154842.GQ16868@calimero.vinschen.de> |
On 08/08/2013 11:48 AM, Corinna Vinschen wrote: > On Aug 8 17:32, Corinna Vinschen wrote: >> On Aug 8 09:48, Ryan Johnson wrote: >>> Hi all, >>> >>> (no, that's not a typo in the subject line) >>> >>> 64-bit install, bash inside mintty, all latest packages with the >>> cygwin1.dll snapshot shown below... >>> >>> # <<< --- begin STC --->>> >>> $ uname -a >>> CYGWIN_NT-6.1 ryan-laptop-v02 1.7.23s(0.268/5/3) 20130729 19:11:42 >>> x86_64 Cygwin >>> >>> $ echo "Reading" > /dev/clipboard >>> >>> # hit [shift]+[insert] to paste >>> # (hopefully 8 characters is not "too long" to paste into a TTY) >>> # then hit ^D to finish >>> $ cat > tmp.txt >>> >>> $ cat tmp.txt >>> Rg >>> eRaedaidnign >>> g >> The only idea I have is this. The clipboard data is stored as >> CF_UNICODETEXT and as the Cygwin-private CYGWIN_NATIVE_CLIPBOARD format. >> How's shift-insert implemented in mintty? If it reads the CF_UNICODETEXT >> part and sends it to the pty unchanged, that could explain >> this behaviour. > The pty already gets 16 chars. And pasting the text into CMD or, FWIW, > any Windows console window works as expected. So this looks like a > mintty bug right now. That's what I thought at first, too, but it pastes fine directly into the terminal... and then I had a brain cramp and didn't add that to the STC: $ echo reading > /dev/clipboard # press [shift]+[insert] here... $ echo reading Still a mintty bug? Ryan -- 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |