From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37246 invoked by alias); 18 Jan 2017 02:08:30 -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 37236 invoked by uid 89); 18 Jan 2017 02:08:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=consoles, H*MI:sk:587eb89, H*i:sk:587eb89, H*f:sk:587eb89 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; Wed, 18 Jan 2017 02:08:19 +0000 Received: from smtp.corp.redhat.com (int-mx16.intmail.prod.int.phx2.redhat.com [10.5.11.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9A31061BAB; Wed, 18 Jan 2017 02:08:19 +0000 (UTC) Received: from [10.10.117.52] (ovpn-117-52.rdu2.redhat.com [10.10.117.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1C9402D591; Wed, 18 Jan 2017 02:08:19 +0000 (UTC) Subject: Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.1-1, libreadline-devel-7.0.1-1, bash-4.4.5-1 To: cygwin@cygwin.com, svnpenn@gmail.com References: <587eb89a.03339d0a.1c944.bffb@mx.google.com> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <22d8cd67-3a5a-9f7f-9e4a-eb0a43bd5b2c@redhat.com> Date: Wed, 18 Jan 2017 02:08:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <587eb89a.03339d0a.1c944.bffb@mx.google.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NnngJxFsmIJaMW4FTgKRMMS2r86Im3euC" X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00232.txt.bz2 --NnngJxFsmIJaMW4FTgKRMMS2r86Im3euC Content-Type: multipart/mixed; boundary="knR3NFaOS1iabqAIajad40NPvNUseg5WQ"; protected-headers="v1" From: Eric Blake To: cygwin@cygwin.com, svnpenn@gmail.com Message-ID: <22d8cd67-3a5a-9f7f-9e4a-eb0a43bd5b2c@redhat.com> Subject: Re: [ANNOUNCEMENT] Updated: libreadline7-7.0.1-1, libreadline-devel-7.0.1-1, bash-4.4.5-1 References: <587eb89a.03339d0a.1c944.bffb@mx.google.com> In-Reply-To: <587eb89a.03339d0a.1c944.bffb@mx.google.com> --knR3NFaOS1iabqAIajad40NPvNUseg5WQ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 3023 [again, your email client likes to break threading, so I nearly missed this one] On 01/17/2017 06:36 PM, Steven Penny wrote: > On Mon, 16 Jan 2017 19:32:19, Steven Penny wrote: >> I did another bisect on the readline-7.0-testing branch and came up with= this: >> ef27d114778ffef483ed2746603f9487f880edbd is the first bad commit >> commit ef27d114778ffef483ed2746603f9487f880edbd >> Author: Chet Ramey >> Date: Thu Jul 9 16:28:21 2015 -0400 >> readline-7.0-alpha distribution >=20 Are you building readline from source each step of the bisection? And are you applying all the downstream cygwin patches each build, or just using the stock upstream sources? (The cygwin patches can be found in /usr/src if you use setup.exe to download the sources) > This still works on Linux, even with libreadline7. Linux doesn't have a cmd.exe. And in mintty, I'm having no problems entering extended characters (well, there, ALT-6-6 gives 'B' as in ASCII, but ALT-2-3-4 gives '=C3=AA' instead of '=CE=A9', while ALT-+-2-3-4 = gives '=CE=A9', but at least input isn't silently dropped). So I really think th= is is an issue with interacting with the native windows console (which is cygwin's domain), and not with the input being fed to readline (readline is reading the terminal presented by cygwin, but it is cygwin that is interpreting the console's reaction to keypresses in a way that is converted to what cygwin apps think is a normal terminal). Another thing I tried: running bash in mintty, this command: printf $'\u66\u3a9' outputs 'f=CE=A9' (correct, since hex 66 is 'f', while decimal 66 is 'B'). But while running bash directly from cmd.exe, the same command results in 'f\u03A9'. It's as if bash has determined (from locale?) that the current character set is not Unicode, and therefore outputs an escape sequence instead of the UTF-8 sequence. So next I tried LANG=3Den_US.UTF-8. After that, the printf produced the results I got in mintty, but ALT-2-3-4 caused \316 to be output. Normally, I _don't_ run anything under cmd.exe (all my use of cygwin is under mintty), so I need a lot of hand-holding to reproduce anything in your setup, in particular how you are even getting extended characters to print (what locales and/or window settings you have to set). > Chet is refusing to address > the issue: >=20 > http://lists.gnu.org/archive/html/bug-readline/2017-01/msg00001.html I didn't even know bug-readline existed (all the readline bug reports I've seen over the years have been addressed to bug-bash); I'm subscribed now. But Chet is right that it is probably a Cygwin problem, and not a readline problem. >=20 > So it looks like we will need a Cygwin specific patch? Well, first someone has to get to the real root cause. Since I have been unable to reproduce it, and I don't have much free time to devote to it, I don't know when that will be. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --knR3NFaOS1iabqAIajad40NPvNUseg5WQ-- --NnngJxFsmIJaMW4FTgKRMMS2r86Im3euC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYfs4RAAoJEKeha0olJ0Nqd90H/1J/TOEyXm7ql2JIcBuGKiWk sdGDFTCOnSKIhhDYYUcGNHscL64LKvjzddTer5X2alcYqYpWrb1rtnVxxG/qkvkZ StIbQjJMkH6rrhSZM4N4wkKuKcBXvxXPK0Sq9hhlA5nSZFSHxOJEUp0AucZYlgEq fjT0mg8E6XYO4EfTKfW1I9zcD14feEk/NCcwBlqfX5c303AeZWOJs/fxiZ+sKpfc MSBsS/xZ3Jm043jvvY/VrQ6LLbIH/P5mIk5RmpVh3LDDc2k3i0y9UD9b8qcdYpPt hK+9LcMQbKRYoruB4G48y0JWCSfy8S/s301+mKgNXnk+YsBP+wahUIj3DGVLBaQ= =J4b0 -----END PGP SIGNATURE----- --NnngJxFsmIJaMW4FTgKRMMS2r86Im3euC--