From 83fe70010d11f8e358f5e888f2df14d49d2ec22a Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 18 Dec 2014 23:18:47 -0600 Subject: Fix reading 4 byte UTF-8 text input --- src/sdl/sdl_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sdl') diff --git a/src/sdl/sdl_input.c b/src/sdl/sdl_input.c index 88ac0451..bd59cc51 100644 --- a/src/sdl/sdl_input.c +++ b/src/sdl/sdl_input.c @@ -825,7 +825,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 ); } -- cgit