diff --git a/win32/io.c b/win32/io.c index 05fc9723..933fb177 100644 --- a/win32/io.c +++ b/win32/io.c @@ -427,7 +427,7 @@ int consoleread(HANDLE hInput, unsigned char * buf,size_t howmany) { ) ch = 0; if (alt_pressed) { -#ifdef DSPMBYTE +#if defined(DSPMBYTE) || (WINNT_NATIVE_UTF8_SUPPORT) buf[where++] = '\033'; if (howmany == 1) pre_ch = ch;