aboutsummaryrefslogtreecommitdiff
path: root/win32/winansi.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/winansi.c')
-rw-r--r--win32/winansi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/win32/winansi.c b/win32/winansi.c
index 4beef3eb8..83ce076c0 100644
--- a/win32/winansi.c
+++ b/win32/winansi.c
@@ -1293,6 +1293,10 @@ BOOL readConsoleInput_utf8(HANDLE h, INPUT_RECORD *r, DWORD len, DWORD *got)
1293 if (len != 1) 1293 if (len != 1)
1294 return FALSE; 1294 return FALSE;
1295 1295
1296 // if ACP is UTF8 then we read UTF8 regardless of console (in) CP
1297 if (GetConsoleCP() != CP_UTF8 && GetACP() != CP_UTF8)
1298 return ReadConsoleInput(h, r, len, got);
1299
1296 if (u8pos == u8len) { 1300 if (u8pos == u8len) {
1297 DWORD codepoint; 1301 DWORD codepoint;
1298 1302