From 7a849e1903f3943351773190a1e39e0445b55204 Mon Sep 17 00:00:00 2001 From: YO4 Date: Sat, 3 Sep 2022 00:53:09 +0900 Subject: [PATCH] win32.c fix: is_readable_console UnicodeChar with lower byte == 0 has dropped accidentaly this is additional fix for #5634 --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/win32.c b/win32/win32.c index 480b7a679712b7..6f1ee5120615fa 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 {