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

18 lines
396 B
Diff

---
ell/utf8.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: ell-0.17/ell/utf8.c
===================================================================
--- ell-0.17.orig/ell/utf8.c
+++ ell-0.17/ell/utf8.c
@@ -93,7 +93,7 @@ LIB_EXPORT int l_utf8_get_codepoint(cons
if (len == 0)
return 0;
- if (str[0] > 0) {
+ if ((str[0] & 0x80) == 0) {
*cp = str[0];
return 1;
}