fix UTF8 trimming

This commit is contained in:
Enno Rehling 2019-08-01 22:58:20 +02:00
parent 55299346f8
commit 964a0586dc

View file

@ -40,7 +40,7 @@ size_t unicode_utf8_trim(char *buf)
assert(buf);
while (*ip) {
size_t size = 1;
wint_t wc = *ip;
wint_t wc = *(unsigned char *)ip;
if (wc & 0x80) {
wint_t ucs = 0;
if (ip[1]) {