Fix reading 4 byte UTF-8 text input
This commit is contained in:
1 parent
65121c62c9
commit
a700b76722
1 file changed
+1
-1
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user