public inbox for cygwin-developers@cygwin.com
 help / color / mirror / Atom feed
From: Thomas Wolff <towo@towo.net>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>,
	cygwin-developers@cygwin.com
Subject: Re: New implementation of pseudo console support (experimental)
Date: Tue, 1 Sep 2020 10:56:15 +0200	[thread overview]
Message-ID: <471f34d6-408a-37a4-a424-d64fc0262551@towo.net> (raw)
In-Reply-To: <nycvar.QRO.7.76.6.2009010647100.56@tvgsbejvaqbjf.bet>

Am 01.09.2020 um 07:00 schrieb Johannes Schindelin:
> Hi Thomas,
>
> On Mon, 31 Aug 2020, Thomas Wolff wrote:
>
>> Am 31.08.2020 um 21:17 schrieb Johannes Schindelin:
>>> [...]
>>>
>>> But that does _not_ reinstate the previous behavior when Pseudo
>>> Console support is disabled.
>>>
>>> Now, I would call that a regression (the entire idea of `disable_pcon`
>>> was to fall back to the previous behavior, no?). And I do not really
>>> understand where it comes from, that regression.
>> I wouldn't quite call it a regression as it disables buggy behaviour
>> which was used as a workaround for a buggy system environment. But
>> arguably you could expect such an option to fall back to previous buggy
>> behaviour.
> I think I got it. After you called this kind of application buggy for a
> dozen times, I think I finally understood. You think they are buggy!
>
> And while you sink into your comfy chair, thinking that you settled the
> issue, in reality it is not settled at all. Arguing whether it is correct
> for an application not to call `SetConsoleOutputCP()` does not help
> anyone. Just because the behavior is considered undefined does not mean
> that we should make the situation _intentionally_ worse.
>
> That is, if we can get back to a spot where the (yes, buggy, buggy,
> BUGGY!) applications behave in at least roughly the same way as before,
> users will be much better off.
I'm fine with that, I was just trying to sort out the situation and 
explain how I understand it.
In fact, your patch could be taken as an alternative complement to the 
ConPTY support;
for completeness, it could handle other charsets as well.
And I'm curious whether that'll work seamlessly. My previous proposal 
"winpty injection" (2018) was rejected because it failed in some special 
case reported by you... Would be nice to get this working, though.
Thomas

> The work-around could be e.g. what I suggested in my reply to Corinna (and
> which is the equivalent of what you suggested -- "just run chcp once" --
> just without putting the burden on the users' shoulders, by calling
> `SetConsoleOutputCP()` in the runtime, once).
>
> In any case, my question why `disable_pcon` still uses the console output
> code page was directed more at Takashi than you (or anybody else familiar
> with that code path).
>
> Ciao,
> Johannes


      reply	other threads:[~2020-09-01  8:56 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-13 12:16 Takashi Yano
2020-05-13 12:35 ` Thomas Wolff
2020-05-14  9:28 ` Takashi Yano
2020-05-14  9:34   ` Takashi Yano
2020-05-16  0:29     ` Takashi Yano
2020-05-16  7:47       ` Takashi Yano
2020-05-19 13:40         ` Takashi Yano
2020-05-25 10:53           ` Takashi Yano
2020-05-25 15:22             ` Corinna Vinschen
2020-05-25 19:16               ` Thomas Wolff
2020-05-26  1:00               ` Takashi Yano
2020-05-26  7:14                 ` Thomas Wolff
2020-05-26  9:21                   ` Takashi Yano
2020-05-26  9:32                     ` Thomas Wolff
2020-05-26  8:33                 ` Corinna Vinschen
2020-05-26  1:09             ` Takashi Yano
2020-05-28 15:40               ` Takashi Yano
2020-05-29 15:30                 ` Corinna Vinschen
2020-05-30  7:36                   ` Takashi Yano
2020-05-30 13:14                     ` Takashi Yano
2020-05-30 17:43                       ` Corinna Vinschen
2020-05-31  5:52                         ` Takashi Yano
2020-07-01 11:47                 ` Takashi Yano
2020-07-17 11:19                   ` Corinna Vinschen
2020-07-17 12:47                     ` Thomas Wolff
2020-07-17 14:59                       ` Thomas Wolff
2020-07-18  5:05                         ` Takashi Yano
2020-07-18 20:57                           ` Thomas Wolff
2020-07-23 17:17                             ` Takashi Yano
2020-07-27 17:10                               ` Thomas Wolff
2020-07-17 12:52                     ` Ken Brown
2020-07-18  5:07                       ` Takashi Yano
2020-07-18  5:30                     ` Takashi Yano
2020-07-20  8:06                       ` Corinna Vinschen
2020-07-21 18:17                         ` Takashi Yano
2020-07-22  8:45                           ` Takashi Yano
2020-07-22 11:49                             ` Corinna Vinschen
2020-07-22 12:13                               ` Ken Brown
2020-07-23  0:33                             ` Takashi Yano
2020-07-24  5:38                               ` Takashi Yano
2020-07-24 11:22                                 ` Takashi Yano
2020-08-02 12:01                                   ` Corinna Vinschen
2020-08-03  2:05                                     ` Takashi Yano
2020-08-03 10:50                                       ` Corinna Vinschen
2020-08-03  2:11                                   ` Takashi Yano
2020-08-03 12:23                                     ` Takashi Yano
2020-08-11 11:12                                       ` Takashi Yano
2020-08-13  9:58                                         ` Takashi Yano
2020-08-17 11:57                                           ` Takashi Yano
2020-08-19 11:39                                             ` Takashi Yano
2020-08-19 13:41                                               ` Corinna Vinschen
2020-08-19 15:43                                                 ` Thomas Wolff
2020-08-19 20:47                                                 ` Mark Geisert
2020-08-20  8:02                                                 ` Takashi Yano
2020-08-31 12:49                                                   ` Johannes Schindelin
2020-08-31 14:14                                                     ` Takashi Yano
     [not found]                                                     ` <20200831231253.332c66fdddb33ceed5f61db6@nifty.ne.jp>
2020-08-31 14:22                                                       ` Johannes Schindelin
2020-08-31 14:53                                                         ` Takashi Yano
2020-08-31 15:56                                                           ` Johannes Schindelin
2020-08-31 16:12                                                             ` Thomas Wolff
2020-08-31 17:39                                                               ` Thomas Wolff
2020-08-31 19:17                                                                 ` Johannes Schindelin
2020-08-31 19:37                                                                   ` Corinna Vinschen
2020-09-01  4:46                                                                     ` Johannes Schindelin
2020-09-01  9:23                                                                       ` Takashi Yano
2020-09-01  6:32                                                                         ` Johannes Schindelin
2020-09-01 22:33                                                                           ` Takashi Yano
2020-09-02  6:13                                                                             ` Johannes Schindelin
2020-09-01  9:42                                                                         ` Takashi Yano
2020-08-31 21:07                                                                   ` Thomas Wolff
2020-08-31 23:23                                                                     ` Takashi Yano
2020-09-01  5:00                                                                     ` Johannes Schindelin
2020-09-01  8:56                                                                       ` Thomas Wolff [this message]

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=471f34d6-408a-37a4-a424-d64fc0262551@towo.net \
    --to=towo@towo.net \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=cygwin-developers@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).