Fix OSUTF8to32

This commit is contained in:
Phillip Stephens 2021-07-10 19:40:39 -07:00
parent 0396cf467b
commit 2288e71605
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 1 additions and 0 deletions

View File

@ -3106,6 +3106,7 @@ const char8_t* OSUTF8To32(const char8_t* utf8, char32_t* utf32) {
len = 0; len = 0;
} else if ((chr & 0xe0) == 0xc0) { } else if ((chr & 0xe0) == 0xc0) {
outChar = chr & 0x1F; outChar = chr & 0x1F;
len = 1;
} else if ((chr & 0xf0) == 0xe0) { } else if ((chr & 0xf0) == 0xe0) {
outChar = chr & 0xf; outChar = chr & 0xf;
len = 2; len = 2;