ruby-changes:73486
From: YO4 <ko1@a...>
Date: Fri, 9 Sep 2022 00:46:18 +0900 (JST)
Subject: [ruby-changes:73486] 7a849e1903 (master): win32.c fix: is_readable_console
https://git.ruby-lang.org/ruby.git/commit/?id=7a849e1903 From 7a849e1903f3943351773190a1e39e0445b55204 Mon Sep 17 00:00:00 2001 From: YO4 <ysno@a...> Date: Sat, 3 Sep 2022 00:53:09 +0900 Subject: 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 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 */ https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L3102 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 { -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/