summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYO4 <ysno@ac.auone-net.jp>2022-09-03 00:53:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-09 00:45:56 +0900
commit7a849e1903f3943351773190a1e39e0445b55204 (patch)
tree2f73a72f5203f5d2116053e3bee5fcbc6de18284
parente2ccb316b437104cd1734c378970d34f5305966d (diff)
win32.c fix: is_readable_console
UnicodeChar with lower byte == 0 has dropped accidentaly this is additional fix for #5634
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6328
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 480b7a6797..6f1ee51206 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3102,7 +3102,7 @@ is_readable_console(SOCKET sock) /* call this for console only */
RUBY_CRITICAL {
if (PeekConsoleInputW((HANDLE)sock, &ir, 1, &n) && n > 0) {
if (ir.EventType == KEY_EVENT && ir.Event.KeyEvent.bKeyDown &&
- ir.Event.KeyEvent.uChar.AsciiChar) {
+ ir.Event.KeyEvent.uChar.UnicodeChar) {
ret = 1;
}
else {