From f660d48e6ad59e7cca747c27cadeb06b483e1969 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 16 Nov 2006 22:05:33 +0000 Subject: (svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come. --- console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'console.c') diff --git a/console.c b/console.c index 1b5ef1c64..98f6619b2 100644 --- a/console.c +++ b/console.c @@ -181,9 +181,9 @@ static void IConsoleWndProc(Window *w, WindowEvent *e) } break; default: - if (IsValidAsciiChar(e->we.keypress.ascii, CS_ALPHANUMERAL)) { + if (IsValidChar(e->we.keypress.key, CS_ALPHANUMERAL)) { _iconsole_scroll = ICON_BUFFER; - InsertTextBufferChar(&_iconsole_cmdline, e->we.keypress.ascii); + InsertTextBufferChar(&_iconsole_cmdline, e->we.keypress.key); IConsoleResetHistoryPos(); SetWindowDirty(w); } else { @@ -1057,7 +1057,7 @@ void IConsoleCmdExec(const char *cmdstr) if (cmdstr[0] == '#') return; // comments for (cmdptr = cmdstr; *cmdptr != '\0'; cmdptr++) { - if (!IsValidAsciiChar(*cmdptr, CS_ALPHANUMERAL)) { + if (!IsValidChar(*cmdptr, CS_ALPHANUMERAL)) { IConsoleError("command contains malformed characters, aborting"); IConsolePrintF(_icolour_err, "ERROR: command was: '%s'", cmdstr); return; -- cgit v1.2.3-54-g00ecf