sdl2: utf8_strlen() miscalculates multibyte characters
utf8_strlen() checks if a byte value is >= 128 to see if it's beginning of a multibyte character (has topmost bit set). However, the type of the checked byte is 'signed char' and thus result of that comparison is always false (max value for signed char is 127, topmost bit denotes negative value).
#1 Updated by Marko Lindqvist 6 months ago
- File 0039-sdl2-Fix-how-utf8_strlen-detects-multibyte-character.patch 0039-sdl2-Fix-how-utf8_strlen-detects-multibyte-character.patch added
- Status changed from In Progress to Resolved