Jan Engelhardt
8823869f44
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/ell?expand=0&rev=14
18 lines
396 B
Diff
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;
|
|
}
|