Dirk Mueller
52bcb82daf
- unsigned-char.patch: don't depend on signedness of char OBS-URL: https://build.opensuse.org/request/show/670330 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/ell?expand=0&rev=12
14 lines
320 B
Diff
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;
|
|
}
|