SHA256
1
0
forked from pool/ell
ell/unsigned-char.patch

14 lines
320 B
Diff

Index: ell-0.16/ell/utf8.c
===================================================================
--- ell-0.16.orig/ell/utf8.c
+++ ell-0.16/ell/utf8.c
@@ -90,7 +90,7 @@ LIB_EXPORT int l_utf8_get_codepoint(cons
wchar_t val;
size_t i;
- if (str[0] > 0) {
+ if ((str[0] & 0x80) == 0) {
*cp = str[0];
return 1;
}