From: Takashi Yano Date: Mon, 9 May 2022 03:23:57 +0000 (+0900) Subject: Cygwin: pty: Not to change code page of parent console. X-Git-Tag: cygwin-3.4.0~394 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=a19161a6d3f2da706e6a6b3ea026d209848c3ad3;p=newlib-cygwin.git Cygwin: pty: Not to change code page of parent console. - The recent commit "Cygwin: pty: Fix timing of creating invisible console." breaks the feature added by commit 72770148, which prevents pty from changing code page of parent console. This patch restores that. --- diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 5625b7be2..933614228 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -1610,7 +1610,7 @@ fhandler_console::close () if (con_ra.rabuf) free (con_ra.rabuf); - if (!have_execed) + if (!have_execed && !invisible_console) free_console (); return 0; }