From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122605 invoked by alias); 20 Feb 2017 09:07:18 -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 121420 invoked by uid 89); 20 Feb 2017 09:07:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=900, thoroughly, late 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; Mon, 20 Feb 2017 09:07:12 +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 29C7F721E2822 for ; Mon, 20 Feb 2017 10:07:08 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id 4178D5E0540 for ; Mon, 20 Feb 2017 10:07:07 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id 2102EA8061B; Mon, 20 Feb 2017 10:07:07 +0100 (CET) Date: Mon, 20 Feb 2017 09:07:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3 Message-ID: <20170220090707.GA7831@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <09253e2d-af27-ddca-2b49-b65460440f69@towo.net> <6488d88d-f6b8-674d-692c-8372977a4707@redhat.com> <0da58793-0b76-1f13-aca3-06ed6aa83dc3@towo.net> <4bc220da-11d0-fd39-4691-27c6ec9cbbb8@towo.net> <59ecea04-2e3c-41af-9f4a-93a9b772a9e4@towo.net> <20170216124949.GF3889@calimero.vinschen.de> <58A6A7E0.8070500@towo.net> <20170217094302.GI3889@calimero.vinschen.de> <6bac1397-8542-8283-5146-4dffcce7c905@towo.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6TrnltStXW4iwmi0" Content-Disposition: inline In-Reply-To: <6bac1397-8542-8283-5146-4dffcce7c905@towo.net> User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2017-02/txt/msg00237.txt.bz2 --6TrnltStXW4iwmi0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 4113 On Feb 17 23:29, Thomas Wolff wrote: > Am 17.02.2017 um 10:43 schrieb Corinna Vinschen: > > On Feb 17 08:36, Thomas Wolff wrote: > > > Am 16.02.2017 um 21:32 schrieb Thomas Wolff: > > > > Am 16.02.2017 um 13:49 schrieb Corinna Vinschen: > > > > > There's an ESC sequence to change the codeset? Do you mean the > > > > > alternate codeset sequence \e[10m / \e[11m > > > > Oh, that one! Thanks for mentioning, I had overlooked it and fixed > > > > mintty now to consider it. > > > > > or is there something more sophisticated? > > > > I actually meant to adress > > > > https://github.com/mintty/mintty/wiki/CtrlSeqs#locale and there is > > > > also \e%G and \e%@. > > > >=20 > > > > I just notice that later changing of the IUTF8 flag from the master > > > > side does not seem to work on a Window 10 system (although it works > > > > initially) while it does work on a Windows 7 system. Weird. > > > Now tested on 2 Windows 7 systems and 2 Windows 10 systems. Does not > > > work on Windows 10. > > > Any idea? > > Whatever you're observing, there's nothing Windows version-specific > > here. The tcsetattr function indiscriminately copies the incoming > > termios structure over. Maybe the bg_check function fails for some > > reason? Can you strace setting the flag via tcsetattr? > Attached. There are lots of strace output even without interaction. I've > tried to isolate the switching moment tightly. > > There should be some output from tcsetattr as well as from fhandler_ter= mios::bg_check. > >=20 > > Can you check? > You mean the termios_printf trace? How would I activate it (without > recompiling cygwin)? Just use the -m option of strace. Have a look into strace --help, it's explained quite thoroughly. > 861 40124163 [main] bash 7384 fhandler_pty_slave::tcsetattr: (900): pty= output_mutex (0x4AC): waiting -1 ms > 54 40124217 [main] bash 7384 fhandler_pty_slave::tcsetattr: (900): pty= output_mutex: acquired > 48 40124265 [main] bash 7384 fhandler_pty_slave::tcsetattr: (902): pty= output_mutex(0x4AC) released > 54 40124319 [main] bash 7384 __set_errno: int tcsetattr(int, int, cons= t termios*):158 setting errno 0 > 58 40124377 [main] bash 7384 tcsetattr: iflag 0x850A, oflag 0x9, cflag= 0xBF, lflag 0xD1F, VMIN 1, VTIME 0 > 58 40124435 [main] bash 7384 tcsetattr: 0 =3D tcsetattr(0, 3, 0x6B1F12= 40) Ok, so here you're setting iflags & ~IUTF8 > 34 40131547 [main] bash 7384 tcgetattr: iflag 0x850A, oflag 0x9, cflag= 0xBF, lflag 0xD1F, VMIN 1, VTIME 0 confirmed by bash > 35 40131582 [main] bash 7384 fhandler_pty_slave::tcsetattr: (900): pty= output_mutex (0x4AC): waiting -1 ms > 33 40131615 [main] bash 7384 fhandler_pty_slave::tcsetattr: (900): pty= output_mutex: acquired > 34 40131649 [main] bash 7384 fhandler_pty_slave::tcsetattr: (902): pty= output_mutex(0x4AC) released > 32 40131681 [main] bash 7384 __set_errno: int tcsetattr(int, int, cons= t termios*):158 setting errno 0 > 33 40131714 [main] bash 7384 tcsetattr: iflag 0x840A, oflag 0x9, cflag= 0xBF, lflag 0xD19, VMIN 1, VTIME 0 > 32 40131746 [main] bash 7384 tcsetattr: 0 =3D tcsetattr(0, 3, 0x6DC0D4) And then bash sets iflags again, just to the same values as mintty had set them before. > 145 43721757 [main] mintty 9348 tcgetattr: iflag 0x840A, oflag 0x9, cfl= ag 0xBF, lflag 0xD19, VMIN 1, VTIME 0 > 33 43721790 [main] mintty 9348 __set_errno: int tcsetattr(int, int, co= nst termios*):158 setting errno 88 > 36 43721826 [main] mintty 9348 tcsetattr: iflag 0x2840A, oflag 0x9, cf= lag 0xBF, lflag 0xD19, VMIN 1, VTIME 0 > 36 43721862 [main] mintty 9348 tcsetattr: 0 =3D tcsetattr(3, 2, 0x66C7= 74) > 36 43721898 [main] mintty 9348 tcgetattr: iflag 0x2840A, oflag 0x9, cf= lag 0xBF, lflag 0xD19, VMIN 1, VTIME 0 And now mintty sets iflags | IUTF8. Hmm. Why does it do that here? It's certainly too late for bash. I can't see more, but setting and resetting the flag works as expected. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --6TrnltStXW4iwmi0 Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYqrG6AAoJEPU2Bp2uRE+gYp4P/iR7x6ITiNXsCv0cYbNlSOC0 A27+s9vJ2mltfpm3UDt9BdrAlNEiHG0loMMxbY0Vi51ubBeYtnz5zuik+jyAetVD RtbAyB8DtC5n0uYJM1sAVUllLAnEhuoNJGatwIA4hiZTfT3SR9W4tkQSi5hgwtEN t0JJ9QKAjizDWcS3nIh9QLK1jTAyIK1+yxKCPfP89qibFTQvxfbFyPRhk87CvkiA 6zjwxAqMXNg42WhTLs1Mt7dfC4njiXP8pw4/KBLfbj2tBhBm++5Xt2hItIOWyD3T R+JidX48gHMfNw84/YQ5t4DhcP7FvkKxJ+ipe1n3jfmXZHz1CCkebMbHXAXfDlMh Nu2oVWivs7hx/Te1Kvo/DTBDRPedRy4eTfbRhTgDBnPWM5VjfC/ZhTMXhb1cAPNw hBNewBoPW6139If7d8pcrrScWja1JFpZDpMhxjE8UIsBcz4r+GK4U+7WOI3d2AfO sA/KTVRYPTdiCBvY/X+XQ38xhh6hR1u0JiLHAkkbaapMle0mrZ2cQmXOYlQYZM59 pYYa6kAspu6C2fwhyN/dphymRm1Gq99tVngsrhIiLmb7Dj7we4Jf/BIRiXiY0eYx RKQGkR8XXHMKzr9BmsuRiftZL+lo3GBGJ3mb1+NJbbtaEKk7E13zw4kgXoz8XZ1e hVDL2FbLQ8sHJBhZAQcu =7A7f -----END PGP SIGNATURE----- --6TrnltStXW4iwmi0--