[PATCH 0/3] pty: use the UTF-8 code page by default for non-Cygwin console applications

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 0/3] pty: use the UTF-8 code page by default for non-Cygwin console applications

Johannes Schindelin
This patch series is the result of what was discussed in
https://cygwin.com/pipermail/cygwin-developers/2020-September/011962.html

While it is still not quite clear to me how the Console output code page
is used under `disable_pcon` (when it was not used at all prior to the
Pseudo Console patches, i.e. in v3.0.x), it is clear to me that using
ASCII by default is not desirable.

So here are patches to address this. Incidentally, this addresses quite a
few tickets in the MSYS2 and Git for Windows projects.

Johannes Schindelin (3):
  fhandler_pty_slave::setup_locale: fix typo
  fhandler_pty_slave::setup_locale: fall back to UTF-8, not ASCII
  fhandler_pty_slave::setup_locale: respect charset == "UTF-8"

 winsup/cygwin/fhandler_tty.cc | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

--
2.27.0