]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: pty: Prevent garbled output for existing non-cygwin apps.
authorTakashi Yano via Cygwin-patches <cygwin-patches@cygwin.com>
Fri, 11 Sep 2020 10:54:40 +0000 (19:54 +0900)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 11 Sep 2020 12:09:10 +0000 (14:09 +0200)
commit232fde0e76db14fc59912d0022b72c7739f1d598
treef3610e7ea05de30721c1c486c131173b89d099b7
parent09738c30627c20770d2a1cfa33aaf233bb77d035
Cygwin: pty: Prevent garbled output for existing non-cygwin apps.

- If pseudo console is disabled, non-cygwin apps do not detect
  console device. In this case, some apps output UTF-8 regardless
  of the locale setting. At least git-for-windows, rust-based apps
  and node.js do that. This patch provides backward compatibility
  as default behaviour by setting console codepage to the charset of
  the locale. Even in the cases above, garbled output is prevented
  with this patch in most cases because mintty uses UTF-8 by default.

  I beleave this is not really a problem in cygwin side but that in
  app side, however, some users complain about garbled output with
  existing apps in MSYS2 (which is based on cygwin) in which pseudo
  console is disabled by default.
winsup/cygwin/fhandler_tty.cc
This page took 0.0302829999999999 seconds and 5 git commands to generate.