From 132770245174bf2a77a8d7783911a33ca216a200 Mon Sep 17 00:00:00 2001 From: VDm Date: Sun, 9 Mar 2025 22:42:42 +0400 Subject: [PATCH] fix(console): revert OnChar handler due to the fact that the original console does not support Unicode --- src/console/Handlers.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/console/Handlers.cpp b/src/console/Handlers.cpp index b5e30d9..80bdab9 100644 --- a/src/console/Handlers.cpp +++ b/src/console/Handlers.cpp @@ -12,14 +12,15 @@ static int32_t s_historyIndex = 0; namespace { int32_t OnChar(const EVENT_DATA_CHAR* data, void* param) { - char character[8] = {}; + char character[2] = {}; if (ConsoleAccessGetEnabled() && EventIsKeyDown(ConsoleGetHotKey())) { return 0; } if (ConsoleGetActive()) { - SUniSPutUTF8(data->ch, character); + character[0] = char(data->ch); + character[1] = 0; PasteInInputLine(character); ResetHighlight();