[PATCH v3] Cygwin: pty: Prevent pty from changing code page of parent console.

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jan 18 13:20:19 GMT 2021


On Jan 18 22:10, Takashi Yano via Cygwin-patches wrote:
> - After commit 232fde0e, pty changes console code page when the first
>   non-cygwin app is executed. If pty is started in real console device,
>   pty changes the code page of root console. This causes very annoying
>   result because changing code page changes the font of command prompt
>   if console is in legacy mode. This patch avoids this by creating a
>   new invisible console for the first pty started in console device.
> ---
>  winsup/cygwin/fhandler.h          |   5 +-
>  winsup/cygwin/fhandler_console.cc |  38 ++++++++--
>  winsup/cygwin/fhandler_tty.cc     | 118 +++++++++++++++++++++++++++++-
>  winsup/cygwin/spawn.cc            |   1 +
>  winsup/cygwin/tty.cc              |   2 +
>  winsup/cygwin/tty.h               |   2 +
>  6 files changed, 155 insertions(+), 11 deletions(-)

Pushed, including patch 5/5


Thanks,
Corinna


More information about the Cygwin-patches mailing list