From a700b76722cce7bd9d9a7cb440274de5a60b583f Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 18 Dec 2014 23:18:47 -0600 Subject: [PATCH] Fix reading 4 byte UTF-8 text input --- code/sdl/sdl_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sdl/sdl_input.c b/code/sdl/sdl_input.c index c6eaa6d7..46f95464 100644 --- a/code/sdl/sdl_input.c +++ b/code/sdl/sdl_input.c @@ -776,7 +776,7 @@ static void IN_ProcessEvents( void ) else if( ( *c & 0xF8 ) == 0xF0 ) // 1111 0xxx { utf32 |= ( *c++ & 0x07 ) << 18; - utf32 |= ( *c++ & 0x3F ) << 6; + utf32 |= ( *c++ & 0x3F ) << 12; utf32 |= ( *c++ & 0x3F ) << 6; utf32 |= ( *c++ & 0x3F ); }