fix new bug in ascii converter.

This commit is contained in:
Enno Rehling 2021-02-21 21:01:52 +01:00
parent abf548cecd
commit a3499dd895

View file

@ -578,6 +578,9 @@ int unicode_utf8_to_ascii(unsigned char *cp_character, const char * utf8_string,
if (*length > 1) {
*cp_character = '?';
}
else {
*cp_character = (unsigned char)ucs4_character;
}
}
return result;
}