From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72635 invoked by alias); 20 Feb 2017 21:08:16 -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 72622 invoked by uid 89); 20 Feb 2017 21:08:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.2 spammy=stty, 20022017, 20.02.2017 X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.130) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 20 Feb 2017 21:08:13 +0000 Received: from [192.168.178.45] ([95.91.213.111]) by mrelayeu.kundenserver.de (mreue004 [212.227.15.167]) with ESMTPSA (Nemesis) id 0MSFaB-1cleUa0MCh-00TRTw for ; Mon, 20 Feb 2017 22:08:11 +0100 Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3 To: cygwin@cygwin.com References: <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> <20170220091134.GB7831@calimero.vinschen.de> From: Thomas Wolff Message-ID: Date: Mon, 20 Feb 2017 21:08:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170220091134.GB7831@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-UI-Out-Filterresults: notjunk:1;V01:K0:eWY2OHFKeSo=:MjhMOQGWITz6SHuXfmowTS KdL5Ze56JVyJHY+8cfTBzJriyUUB2/36pMIVIIXRzA9a0IKOe4USFZmy6afiNH86pStyKg70z PIXJgMllrej5HqgvSdvi5aZh968JO+hRNGdrq8v8RHre46FkaMBT7qwB3nWxk+Z9rr7pFaMA/ sq2Cdo5GtIXis1xQx1Mho1QAw1FxAMB4zEZ0m4N++XM8wHJo1qrxWQlpdn+3t8r5liSCZz/pW AxNra/rEw7hYMiZsPY/WhgZrXfIbJEPVMwlsBbkfei0CMg7rFInN0VQRQSRwzLG186CpKGgo+ JpGJk4Pl3EKWqrr7UY9Biam1NjWzpcHXyzFAHOSHDnDyKZrU8WZ1AlUF7l11TYD2iqADiz3Rt iT6YHtWvFuFP3cOLKXd554OFE6aZgtasD8sd34+Ovd8DxymBw1MvwVZWl6YTpnuIniU3r9cuX wwUt69HqP70WSxsENyi5wEJg+e01blhvNKkF31qzZjDgbWWtyC0ACoXnIabrXZdfjWpoCoUay oeCSOjxBpJ2YRpErkf3j9SJYjaJQ/WtqXSak6dplA6EQixCG+sWMYqiAysEXBrR6jiwyiF0/3 Qe8wRtrRfeZKCq5V7lY4lLpXFqzqUqQz+qLlp3xsOqqZ2XSvIawJ6UpRvZTi553gnMk7Ijnkr Zg3iaPA1l8Lft1XfyyNPCwJgux1R4opmAPORwTB8tzAZBbViNhybthN10xmr/v1lZfr1cBpak FtyfMtCttbiKcINU X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00248.txt.bz2 Am 20.02.2017 um 10:11 schrieb Corinna Vinschen: > On Feb 18 23:45, Thomas Wolff wrote: >> Am 17.02.2017 um 23:29 schrieb Thomas Wolff: >>> 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%@. >>>>>> >>>>>> 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? >> Actually, I'm not sure but I think this problem only occurs if mintty is >> started in a non-UTF-8 locale. >> If it's started in UTF-8, later switching seems to work. >> The strace shows that errno is set to 88 ENOSYS at some place (but I don't >> know where). > I wonder. Can't you just start mintty under GDB and debug what happens > in the places it calls tcgetattr/tcsetattr? You can also see what > tcsetattr actually doe, which is, almost nothing. At the core it > chooses the tty and just overwrites the termios structure of the tty. > That's all. You can also see what function call returns ENOSYS then. Before fiddling around with gdb (which I'm not familiar with, sorry), I've made additional observations. First, the issue occurs regardless of how the terminal is started. Then, it seems to occur in interactive bash or tcsh only, not in dash, or within the following loop started from bash: while true; do sleep 1; stty -a; done In the latter cases everything works as expected. Maybe it's readline() trying to keep the flag consistent with its locale? (If that's the case, it still doesn't explain why it only fails on Windows 10.) ------ Thomas -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple