delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/02/20/16:08:33

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
:content-transfer-encoding; q=dns; s=default; b=Scfj0VDXDjPGyUxv
0C9brxmSiSxzOYwf91xR5sjuNC+GfNvr/q7UeNe2jTD5FT62wWni6z9ZGoWy3gP1
7yRWnB1gN65Z7bGuZl1tCy4akq+CbEdvJ6uc2UkpaZVzZl1P2NpY97L5o3O214hl
QM6t1xuOx9KL7n3AcOsayDyifw0=
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
:content-transfer-encoding; s=default; bh=CBoPRzddV0OmEONVkriPjv
MzyWY=; b=vDHpm3qOXxdCRUk51GAnhD5DBtA3Yc3WCI12Dl5jRyo+Rj+NFuG0jX
hwXpObdbjCN6I1p80ExSD7IXpTMlByaZcnReGxlL1kzKcDdvDGVLw7BP9n7niYEQ
QMfa6ok8SQ3LcXS/FEs17zRvnI3ml2LR+Nm3v8gscEhlQAGQ2CDlI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-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
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3
To: cygwin AT cygwin DOT com
References: <6488d88d-f6b8-674d-692c-8372977a4707 AT redhat DOT com> <0da58793-0b76-1f13-aca3-06ed6aa83dc3 AT towo DOT net> <4bc220da-11d0-fd39-4691-27c6ec9cbbb8 AT towo DOT net> <59ecea04-2e3c-41af-9f4a-93a9b772a9e4 AT towo DOT net> <20170216124949 DOT GF3889 AT calimero DOT vinschen DOT de> <bb2239bd-8cc3-2992-1554-18a04736ace7 AT towo DOT net> <58A6A7E0 DOT 8070500 AT towo DOT net> <20170217094302 DOT GI3889 AT calimero DOT vinschen DOT de> <6bac1397-8542-8283-5146-4dffcce7c905 AT towo DOT net> <eae638e5-efec-fdd8-c690-dc16f777f409 AT towo DOT net> <20170220091134 DOT GB7831 AT calimero DOT vinschen DOT de>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <c02e3c8e-04a0-c471-d8b3-24fc918391f4@towo.net>
Date: Mon, 20 Feb 2017 22:08:10 +0100
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>
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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019