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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=GAfy jusSiCN8iShkrBdWYNlx9B+mubJwB2m2aiNxXCZxSUbYfKlhF2PAEkNDwhMJLgYu BScD4PXKuwZYr0zbOUFC8Og7lHKeHU2yz/puSe175c4K2g7ntnSqCVS4u0K1vRGU DDJ6yXO7uFCZGxh3BXotNOXzL4KHyitemc/JsQs= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=Od/Ts7zENU KBUF2UyTRuHaamB4E=; b=IvcEYyKnBc4K4vj3HNab7OGBn26VkhhyUfMdeOD3JV pTXkoM7DjPz12SI32PiP45CxpAWNgK5KE3hQPgSyuYgWp9dHH6xZZR6GHGh7fWwu iSSx1qIJOGTQLp2CPQZW/ktfjBg6Hs8p8klwGgTB1+iCKRr4NKydPoS8uT8YdVEv w= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 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 AT redhat DOT com Subject: Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3 To: cygwin AT cygwin DOT com, Steven Penny References: <58f1a28e DOT 0a2c9d0a DOT f2ec DOT 8160 AT mx DOT google DOT 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 12:08:53 -0500 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 --V0IvlsllU1TsbQj2or3D5LQLFUIk53088 Content-Type: multipart/mixed; boundary="DrrQ7A7UcbhQddc4gAbpucqK3qMGauQIO"; protected-headers="v1" From: Eric Blake To: cygwin AT cygwin DOT com, Steven Penny Message-ID: <5dbbf0e4-6374-a9bb-21e5-dd5537e0e19a AT redhat DOT com> Subject: Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.3-3 References: <58f1a28e DOT 0a2c9d0a DOT f2ec DOT 8160 AT mx DOT google DOT com> In-Reply-To: <58f1a28e DOT 0a2c9d0a DOT f2ec DOT 8160 AT mx DOT google DOT com> --DrrQ7A7UcbhQddc4gAbpucqK3qMGauQIO Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable 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" -----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--