From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98446 invoked by alias); 27 Jul 2017 17:09:01 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 98143 invoked by uid 89); 27 Jul 2017 17:08:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:2863, life, emails, letter X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Jul 2017 17:08:57 +0000 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 39EA38046A; Thu, 27 Jul 2017 17:08:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 39EA38046A Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=eblake@redhat.com Received: from [10.10.120.22] (ovpn-120-22.rdu2.redhat.com [10.10.120.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4F9387DE3E; Thu, 27 Jul 2017 17:08:54 +0000 (UTC) Subject: Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3 To: cygwin@cygwin.com, Steven Penny References: <58f1a28e.0a2c9d0a.f2ec.8160@mx.google.com> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <5dbbf0e4-6374-a9bb-21e5-dd5537e0e19a@redhat.com> Date: Thu, 27 Jul 2017 21:37:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <58f1a28e.0a2c9d0a.f2ec.8160@mx.google.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="V0IvlsllU1TsbQj2or3D5LQLFUIk53088" X-IsSubscribed: yes X-SW-Source: 2017-07/txt/msg00391.txt.bz2 --V0IvlsllU1TsbQj2or3D5LQLFUIk53088 Content-Type: multipart/mixed; boundary="DrrQ7A7UcbhQddc4gAbpucqK3qMGauQIO"; protected-headers="v1" From: Eric Blake To: cygwin@cygwin.com, Steven Penny Message-ID: <5dbbf0e4-6374-a9bb-21e5-dd5537e0e19a@redhat.com> Subject: Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3 References: <58f1a28e.0a2c9d0a.f2ec.8160@mx.google.com> In-Reply-To: <58f1a28e.0a2c9d0a.f2ec.8160@mx.google.com> --DrrQ7A7UcbhQddc4gAbpucqK3qMGauQIO Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Content-length: 2884 On 04/14/2017 11:33 PM, Steven Penny wrote: > On Thu, 13 Apr 2017 13:48:04, Eric Blake wrote: >> Is it still a problem with pselect, where rebuilding with the same >> configuration as 7.0.1-2 fixes things? I've got some time today to look at building readline, but for the life of me, I can't figure out what I'm supposed to be debugging. You have so many emails saying "see this earlier URL" that I am lost in what you are saying is wrong or how to reproduce it. I'm currently testing with: bash 4.4.12-3 cygwin 2.8.2-1 libreadline7 7.0.3-3 (or self-built) > I'm really not sure how to even >> go about debugging this one, and it's not my highest priority at the >> moment (I've got coreutils 8.27 to build for cygwin, and autoconf 2.70 >> to release upstream). So any help is welcome. >=20 > Ok. I have not gone through the whole commit, as it is huge: >=20 > http://cygwin.com/ml/cygwin/2017-01/msg00204.html >=20 > but I did find something. Using: >=20 > git checkout readline-7.0-alpha~1 >=20 > for the last good commit and: >=20 > git checkout readline-7.0-alpha >=20 > for the first bad commit, I found that the change to the "rl_insert" > function in > "text.c" breaks pasting and Alt codes with "chcp.com 65001". Can you > work with > this? Thanks again for trying to narrow things down. I have recompiled readline locally with optimizations turned off (so it's easier for me to see what's going on), and am set up to run gdb on bash with a given readline executable installed. If you have really narrowed the problem to rl_insert(), that's at least something I can investigate. But where I'm stuck now is what works for you and what you think is wrong. Is this something where I can start bash under mintty, or do I have to start under cmd? Right there, I already see a difference with the two environments. Starting from cmd, I did: c:\cygwin\bin> od -tx1 which displayed =CE=A9 00000000 ce a9 0z 0000003 so I did indeed insert GREEK CAPITAL LETTER OMEGA U+03A9. But trying the same thing under a bash session in minty shows: =C3=AA 0000000 c3 aa 0a 0000003 so that is not the same character. I'm not sure if a code page change is supposed to alter what I see. So I'm back to cmd to try and debug things. Next, I tried: c:\cygwin\bin> .\dash and again got =CE=A9; pressing complains that ./dash: 1: =CE=A9: no= t found However, when I try: c:\cygwin\bin> .\bash --norc the display shows :\251 and hitting wipes out that display without doing anything. So I _think_ I'm running into the problem you're describing, but want to make sure, since it is different based on whether I started bash from cmd or from mintty. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --DrrQ7A7UcbhQddc4gAbpucqK3qMGauQIO-- --V0IvlsllU1TsbQj2or3D5LQLFUIk53088 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 619 -----BEGIN PGP SIGNATURE----- Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAll6HiUACgkQp6FrSiUn Q2puIwf/eDH+Hkt15BtaxuTMARWswxNXlb72BGQmGRfl1MaLUV6Mu2HIOvrZ8CMx QmdX35tH4vTyEtSxeZkUbObEZsYxAJK+9/kx32Fr3cMvN+FvBI8Y8r/uOyHXQoys D/ayyJE9Xu4BHB/8pMQwOkzvNiX/vhd3cOCg1MVGmdEk6nA4P+dD71ZDDGoB1clA kKjl0Bj+HlKSs26Kxc95DOn5PsVdoGBQKALuVYTj0WsN28jkGF1LyIGNWh5tbwny pYO0QTHcRVr4oHJx8XILW3BGaMsEHKnTnir2RzMalaSsGsUoinnYohEAZzswB5c6 Aifv6H97AkRwxEB65KjA7Z9CMPexGw== =gT31 -----END PGP SIGNATURE----- --V0IvlsllU1TsbQj2or3D5LQLFUIk53088--