diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2017-05-20 20:13:29 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2017-05-20 20:13:29 +0200 |
commit | a2bb776ea81715a7b9eae4b2ea8aca032d42fb5e (patch) | |
tree | fd26930ae8514cbf21d3f223f2e537a7c5136e4b | |
parent | 60baf8120cdaabc619ab655065d95e8318e98412 (diff) | |
download | minetest-a2bb776ea81715a7b9eae4b2ea8aca032d42fb5e.tar.gz minetest-a2bb776ea81715a7b9eae4b2ea8aca032d42fb5e.tar.bz2 minetest-a2bb776ea81715a7b9eae4b2ea8aca032d42fb5e.zip |
Fix wchar_t type on 605599b6f150b89ba6539c4d088231b326adcb48
event.KeyInput.Char is a wchar_t, iswprint should be used
-rw-r--r-- | src/guiChatConsole.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp index 4af1caa80..8281da861 100644 --- a/src/guiChatConsole.cpp +++ b/src/guiChatConsole.cpp @@ -627,9 +627,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event) bool backwards = event.KeyInput.Shift; prompt.nickCompletion(names, backwards); return true; - } - else if(isprint(event.KeyInput.Char) && !event.KeyInput.Control) - { + } else if (iswprint(event.KeyInput.Char) && !event.KeyInput.Control) { #if defined(__linux__) && (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 9) wchar_t wc = L'_'; mbtowc( &wc, (char *) &event.KeyInput.Char, sizeof(event.KeyInput.Char) ); |