]> sourceware.org Git - newlib-cygwin.git/commit
cygwin: select: use UNICODE console functions
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 31 Jul 2017 20:57:06 +0000 (22:57 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 31 Jul 2017 20:57:06 +0000 (22:57 +0200)
commite6c75c1de15f6be76987b63219ca4cca03761bec
tree44ea36dd7b5ae964f235c508a411c471cdccd7cc
parent7b9bfb4136f23655e243bab89fb62b04bdbacc7f
cygwin: select: use UNICODE console functions

For historical reasons peek_console was calling the functions
PeekConsoleInputA and ReadConsoleInputA.  However, these functions are
not working correctly under at least codepage 65001 (UTF-8) on systems
prior to Windows 10.

Use PeekConsoleInputW and ReadConsoleInputW instead, which work
correctly under all systems and all codepages.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/select.cc
This page took 0.026758 seconds and 5 git commands to generate.