diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /dev-libs/libutf8proc/files/libutf8proc-grapheme-test.patch | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
Diffstat (limited to 'dev-libs/libutf8proc/files/libutf8proc-grapheme-test.patch')
-rw-r--r-- | dev-libs/libutf8proc/files/libutf8proc-grapheme-test.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-libs/libutf8proc/files/libutf8proc-grapheme-test.patch b/dev-libs/libutf8proc/files/libutf8proc-grapheme-test.patch new file mode 100644 index 000000000000..64ebc26f671e --- /dev/null +++ b/dev-libs/libutf8proc/files/libutf8proc-grapheme-test.patch @@ -0,0 +1,23 @@ +https://github.com/JuliaStrings/utf8proc/commit/11bb3d9dc796bb006c79c2962a7d19abcadfb3df + +Author: Steven G. Johnson <stevenj@alum.mit.edu> + +--- a/test/graphemetest.c ++++ b/test/graphemetest.c +@@ -18,12 +18,12 @@ int main(int argc, char **argv) + + while (buf[bi]) { + bi = skipspaces(buf, bi); +- if (buf[bi] == '/') { /* grapheme break */ ++ if ((uint8_t)buf[bi] == 0xc3 && (uint8_t)buf[bi+1] == 0xb7) { /* U+00f7 = grapheme break */ + src[si++] = '/'; +- bi++; ++ bi += 2; + } +- else if (buf[bi] == '+') { /* no break */ +- bi++; ++ else if ((uint8_t)buf[bi] == 0xc3 && (uint8_t)buf[bi+1] == 0x97) { /* U+00d7 = no break */ ++ bi += 2; + } + else if (buf[bi] == '#') { /* start of comments */ + break; |