GNU bug report logs - #71472
Add pty support by using ConPTY on Windows

Previous Next

Package: emacs;

Reported by: Ke Wu <ellpih <at> zohomail.jp>

Date: Mon, 10 Jun 2024 14:41:02 UTC

Severity: wishlist

Full log


Message #8 received at 71472 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ke Wu <ellpih <at> zohomail.jp>
Cc: 71472 <at> debbugs.gnu.org
Subject: Re: bug#71472: [PATCH] Add pty support by using ConPTY on Windows
Date: Mon, 10 Jun 2024 18:40:48 +0300
> From: Ke Wu <ellpih <at> zohomail.jp>
> Date: Mon, 10 Jun 2024 18:26:46 +0800
> 
> This patch adds pty support by using ConPTY on Windows. The conhost.exe
> runs in pty mode and provides pty interface. The package term is also
> patched to make it usable on Windows.

Thanks.  It's a pity you didn't discuss this before working on the
code, because ConPTY is not very useful on MS-Windows due to the
limitations of its encoding.  See this issue I opened 3 years ago, and
which they meanwhile closed (I guess they don't plan on fixing this
anytime soon).  See

  https://github.com/microsoft/terminal/issues/9174

If we must use UTF-8 as the only encoding to talk to sub-processes via
ConPTY, that makes the number of applications that can be used this
way very small, since most programs we are used to run as
subprocesses, in particularly ports of GNU software like GCC, GDB,
Grep, Find, and many others, cannot reliably talk to Emacs in UTF-8
encoding on MS-Windows.  And without that, what would we use this
feature for?

So unfortunately, I don't think we should install these patches.




This bug report was last modified 116 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.