forked from github/server
fix UTF8 trimming
This commit is contained in:
parent
55299346f8
commit
964a0586dc
1 changed files with 1 additions and 1 deletions
|
@ -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]) {
|
||||
|
|
Loading…
Reference in a new issue