public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Thomas Wolff <towo@towo.net>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated: dash-0.5.8-3
Date: Mon, 20 Feb 2017 21:08:00 -0000	[thread overview]
Message-ID: <c02e3c8e-04a0-c471-d8b3-24fc918391f4@towo.net> (raw)
In-Reply-To: <20170220091134.GB7831@calimero.vinschen.de>

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

  reply	other threads:[~2017-02-20 21:08 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-27 23:40 Eric Blake (cygwin)
2017-01-24 15:58 ` Houder
2017-01-25  1:28   ` Steven Penny
2017-01-25 13:37     ` Houder
2017-01-25 20:31       ` cyg Simple
2017-01-28 14:36         ` Houder
2017-01-26  0:14       ` Steven Penny
2017-01-28 13:44         ` Houder
2017-01-31 10:04           ` Corinna Vinschen
2017-01-31 13:16             ` Corinna Vinschen
2017-01-31 15:02               ` Houder
2017-01-31 15:33                 ` Corinna Vinschen
2017-01-31 15:42                   ` Eric Blake
2017-02-01  8:46                     ` Houder
2017-01-31 17:54                   ` Houder
2017-02-01  9:17                     ` Corinna Vinschen
2017-02-13 22:03                   ` Thomas Wolff
2017-02-14  8:45                     ` Corinna Vinschen
2017-02-14 19:40                       ` Thomas Wolff
2017-02-14 19:56                         ` Eric Blake
2017-02-14 20:29                           ` Thomas Wolff
2017-02-14 20:35                             ` Thomas Wolff
2017-02-15 22:19                               ` Thomas Wolff
2017-02-16 12:49                                 ` Corinna Vinschen
2017-02-16 20:32                                   ` Thomas Wolff
2017-02-17  7:36                                     ` Thomas Wolff
2017-02-17  9:43                                       ` Corinna Vinschen
2017-02-17 22:30                                         ` Thomas Wolff
2017-02-18 22:46                                           ` Thomas Wolff
2017-02-20  9:11                                             ` Corinna Vinschen
2017-02-20 21:08                                               ` Thomas Wolff [this message]
2017-02-20  9:07                                           ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c02e3c8e-04a0-c471-d8b3-24fc918391f4@towo.net \
    --to=towo@towo.net \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).