diff options
author | Takashi Yano via Cygwin-patches <cygwin-patches@cygwin.com> | 2021-01-18 22:10:57 +0900 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2021-01-18 14:18:43 +0100 |
commit | 72770148ad0ab78bfdddf786b8fa5419c1eb3bdd (patch) | |
tree | 7e31e0517094aaafda77e0f481e85109c0c2c709 /winsup/cygwin/spawn.cc | |
parent | 9e88e840c2062ee1492e303da5fc696eec849328 (diff) | |
download | newlib-72770148ad0ab78bfdddf786b8fa5419c1eb3bdd.zip newlib-72770148ad0ab78bfdddf786b8fa5419c1eb3bdd.tar.gz newlib-72770148ad0ab78bfdddf786b8fa5419c1eb3bdd.tar.bz2 |
Cygwin: pty: Prevent pty from changing code page of parent console.
- 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.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index bf1b080..42044ab 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -648,6 +648,7 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv, { fhandler_pty_slave *ptys = (fhandler_pty_slave *)(fhandler_base *) cfd; + ptys->create_invisible_console (); ptys->setup_locale (); } } |