2019-03-15 10:33:53 +01:00
|
|
|
From: Andreas Schwab <schwab@suse.de>
|
|
|
|
Date: 2019-01-31 12:45:09+0100
|
|
|
|
|
|
|
|
Don't depend on the signedness of char.
|
2019-03-15 10:32:56 +01:00
|
|
|
---
|
|
|
|
ell/utf8.c | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
Index: ell-0.17/ell/utf8.c
|
2019-02-03 19:16:59 +01:00
|
|
|
===================================================================
|
2019-03-15 10:32:56 +01:00
|
|
|
--- 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;
|
2019-02-03 19:16:59 +01:00
|
|
|
|
|
|
|
- if (str[0] > 0) {
|
|
|
|
+ if ((str[0] & 0x80) == 0) {
|
|
|
|
*cp = str[0];
|
|
|
|
return 1;
|
|
|
|
}
|