Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: dace60fbdbd315ddaeca8ff9dad1d4a672f95a3d
https://github.com/Perl/perl5/commit/dace60fbdbd315ddaeca8ff9dad1d4a672f95a3d
Author: Tomasz Konojacki <[email protected]>
Date: 2021-04-14 (Wed, 14 Apr 2021)
Changed paths:
M win32/win32.c
Log Message:
-----------
win32.c: make reading UTF-8 characters from the console possible
Due to a bug in Windows, ReadFile() and ReadConsoleA() (and thus
_read()), return zeros instead of non-ASCII characters when the console
codepage is set to 65001. See this ticket for more details:
https://github.com/microsoft/terminal/issues/4551
This commit works around that bug by using ReadConsoleW() inside
win32_read() when the passed fd points to the console and the console
codepage is set to 65001.
Fixes #18701