[PATCH 1/3] Fix bad file descriptor error in some environment. The bad file descriptor problem reported in: https://cygwin.com/ml/cygwin-patches/2019-q3/msg00104.html was recurring. Fixed again.
[PATCH 2/3] Use system NLS function instead of PTY's own one. Since calling system __loadlocale() caused execution error, PTY used its own NLS function. The cause of the error has been found, the corresponding code has been rewritten using system function. [PATCH 3/3] Change the timing of clearing screen. The code which clears screen is moved from reset_switch_to_pcon() to fixup_after_exec() because it seems not too early even at this timing. Takashi Yano (3): Cygwin: pty: Fix bad file descriptor error in some environment. Cygwin: pty: Use system NLS function instead of PTY's own one. Cygwin: pty: Change the timing of clearing screen. winsup/cygwin/fhandler.h | 1 + winsup/cygwin/fhandler_tty.cc | 527 ++++++++-------------------------- winsup/cygwin/tty.cc | 2 +- winsup/cygwin/tty.h | 2 +- 4 files changed, 120 insertions(+), 412 deletions(-) -- 2.21.0