diff --git a/src/engine/interface/input.cpp b/src/engine/interface/input.cpp index a73343c36..559e3b4ac 100644 --- a/src/engine/interface/input.cpp +++ b/src/engine/interface/input.cpp @@ -254,12 +254,10 @@ void checkinput(int map) { if(textinputmask && static_cast(event.text.timestamp-textinputtime) >= textinputfilter) { - uchar buf[SDL_TEXTINPUTEVENT_TEXT_SIZE+1]; - size_t len = decodeutf8(buf, sizeof(buf)-1, reinterpret_cast(event.text.text), std::strlen(event.text.text)); + size_t len = std::strlen(event.text.text); if(len > 0) { - buf[len] = '\0'; - processtextinput(reinterpret_cast(buf), len); + processtextinput(reinterpret_cast(event.text.text), len); } } break;