diff options
| author | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-28 10:57:35 +0000 |
|---|---|---|
| committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-28 10:59:23 +0000 |
| commit | 418eafc869fe68648eb8e7d3ce3af07159cec678 (patch) | |
| tree | 691009f17d7899d956254c4cb66e88263d9c067d /testing/ell/fix-utf8.patch | |
| parent | d96e437b775f2a79ec616c1a549ded3f504d3626 (diff) | |
| download | aports-418eafc869fe68648eb8e7d3ce3af07159cec678.tar.bz2 aports-418eafc869fe68648eb8e7d3ce3af07159cec678.tar.xz | |
testing/ell: fix test suite and a bug in utf8
Diffstat (limited to 'testing/ell/fix-utf8.patch')
| -rw-r--r-- | testing/ell/fix-utf8.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/ell/fix-utf8.patch b/testing/ell/fix-utf8.patch new file mode 100644 index 0000000000..9d4a520240 --- /dev/null +++ b/testing/ell/fix-utf8.patch @@ -0,0 +1,13 @@ +diff --git a/ell/utf8.c b/ell/utf8.c +index e9998f7..b1e8440 100644 +--- a/ell/utf8.c ++++ b/ell/utf8.c +@@ -93,7 +93,7 @@ LIB_EXPORT int l_utf8_get_codepoint(const char *str, size_t len, wchar_t *cp) + if (len == 0) + return 0; + +- if (str[0] > 0) { ++ if ((signed char)str[0] > 0) { + *cp = str[0]; + return 1; + } |
