From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113819 invoked by alias); 31 Jan 2017 10:04:09 -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 113811 invoked by uid 89); 31 Jan 2017 10:04:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.4 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=cooked, Consequently, management, H*F:D*cygwin.com X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 31 Jan 2017 10:04:06 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 1F929721E282F for ; Tue, 31 Jan 2017 11:04:03 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 7A46B5E04C1 for ; Tue, 31 Jan 2017 11:04:02 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id 5C9A1A80412; Tue, 31 Jan 2017 11:04:02 +0100 (CET) Date: Tue, 31 Jan 2017 10:04:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3 Message-ID: <20170131100402.GB29504@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <58893f48.0850ca0a.6c5d.5fde@mx.google.com> <81b5af354b7a3925ff0a68dcc063265f@smtp-cloud6.xs4all.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <81b5af354b7a3925ff0a68dcc063265f@smtp-cloud6.xs4all.net> User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2017-01/txt/msg00397.txt.bz2 --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2049 On Jan 28 14:44, Houder wrote: > On Wed, 25 Jan 2017 16:14:00, Steven Penny wrote: > > Obviously Bash is not the problem, nor readline as Dash doesnt use read= line. So > > it appears the issue this time is again with cygwin1.dll, or perhaps th= e Dash > > package. >=20 > .. uhm, it appears to me that Windows is the issue here. >=20 > As those in the know do not feel inclined to respond, I will provide some > guesses that are my own: >=20 > - in terms of input buffer management, utf-8 encoded characters will not > be recognized in case of bash and dash ... (they are under Fedora) > - see the output of stty -a: iutf8 is not present (it is under Fedora) > - readline provides bash with input buffer management for utf-8 encoded > characters on Windows (that is why it 'works' in case of bash) > - bash has support for utf-8 encoded characters ... > (e.g. ls -l ? will include one-character filenames in case the name is > made up of only one multi-byte character) > - dash has no such support ... [1][2] >=20 > Consequently, dash is only partly useful, even more so on Windows (as it > would require an additional "helper" on Windows in order to obtain proper > line-editing). Helper? readline, libedit ... >=20 > However, I am only guessing ... (only Erik and Corinna can provide expert > details here). I'm not quite sure yet but apparently the problem is in the handling of VERASE in the termios implementation. In cooked mode it fills a char buffer with what has been typed. The code doesn't know if the bytes in the buffer are UTF-8 chars or just random bytes. So VERASE erases exactly one byte, which means, in case of UTF-8 chars it only erases the last byte of of a mulitbyte character. It seems the Linux termios implementation is different in that it still knows which bytes constitute a single keypress and thus knows how much byte it has to erase. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYkGESAAoJEPU2Bp2uRE+gEPEP/i7SuCZo4Y+zHZ1w0tlQ8ebr EL7nFNk0Qpz4w+NEmfOIfiO81FmkA4LlRCGmnVtguEtuLDOvZLnJB9Wzrxv0eW2I 30AjfqmxSaRiPEZUpw0Nu+PD5Ay4DFhiRofClXH3LiFdk5FGmqRxIMP5qHCwXlDZ Szp8w/8kL0qNdcHNN4TWi59R++ROVo4xVxnkC2mYasH0EapvCVCTCtJaIhcV5g2D IILYIGo+IIwqjKc7WJlh8h60L9nXN0Z2+2m0htmNDhNqcs2MK/GfGG2shoPXNOgX UsYd46DzuRRf8gdcKF2ak09bLWeEJVpCMxUAe8raqgUO5qBfDqO5A6nuMCIRQgqr P6pX8Nd2pDMmLYk1ckwWR9yIQ+w4mr00109UrS8mKDBB1d9ZmsiBieI413Z3Ah7c W1MKOuTiX4nN4IVeusCy1ltozOn+rr8AETc1RbpMXZr6arnfsC7O+CkPIONBe2hS ZxD1OedJTW+WEWLSpzIGs3b10BxiGupWy4CJ8W0EtGMkW2SoG277s9hJyEvaWwCv oLOe2uwk5JNurwMKOS7uSFyV+Nf1NnBoBFrF8y6nl6fH6a4SqjwEDvbIlGCBl2TO jVxa7BpVs2OWWJRf1AtcwXI7h42mgp/YTMebqOXfkTaTm2LkTA3zHW3J8aBlJ0QS XyLGgiexz9997nkPoMY1 =3vhp -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--