From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7868) id 8081D3858C52; Mon, 9 May 2022 03:53:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8081D3858C52 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Takashi Yano To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/cygwin-3_3-branch] Cygwin: pty: Not to change code page of parent console. X-Act-Checkin: newlib-cygwin X-Git-Author: Takashi Yano X-Git-Refname: refs/heads/cygwin-3_3-branch X-Git-Oldrev: 7b0d2d1e92f60524b8d93a02282c7d4e9021e9b6 X-Git-Newrev: fbe34bd7642638c2cc11acc41ca2b43f1c56ce16 Message-Id: <20220509035348.8081D3858C52@sourceware.org> Date: Mon, 9 May 2022 03:53:48 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2022 03:53:48 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Dfbe34bd7642= 638c2cc11acc41ca2b43f1c56ce16 commit fbe34bd7642638c2cc11acc41ca2b43f1c56ce16 Author: Takashi Yano Date: Mon May 9 12:23:57 2022 +0900 Cygwin: pty: Not to change code page of parent console. =20 - 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: --- winsup/cygwin/fhandler_console.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_con= sole.cc index d2ed15a99..e84823685 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -1608,7 +1608,7 @@ fhandler_console::close () if (con_ra.rabuf) free (con_ra.rabuf); =20 - if (!have_execed) + if (!have_execed && !invisible_console) free_console (); return 0; }