summaryrefslogtreecommitdiffstats
path: root/office/calibre/patches/icu.patch
diff options
context:
space:
mode:
author Matteo Bernardini2021-01-09 11:36:13 +0100
committer Matteo Bernardini2021-01-09 11:36:13 +0100
commitd53d61a1a0572aa2058e5324fd66c01c2ed3eccf (patch)
treed41f2a4360d572bdbec8081662b0f93b4aa2f8af /office/calibre/patches/icu.patch
parenta60e2f392c2bd7cee33c089073f9d5e5169f422d (diff)
downloadslackbuilds-d53d61a1a0572aa2058e5324fd66c01c2ed3eccf.tar.gz
20210109.1 global branch merge.current-20210109.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'office/calibre/patches/icu.patch')
-rw-r--r--office/calibre/patches/icu.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/office/calibre/patches/icu.patch b/office/calibre/patches/icu.patch
new file mode 100644
index 0000000000..498691e90a
--- /dev/null
+++ b/office/calibre/patches/icu.patch
@@ -0,0 +1,31 @@
+diff -Naur calibre-3.48.0.orig/src/calibre/utils/icu.c calibre-3.48.0/src/calibre/utils/icu.c
+--- calibre-3.48.0.orig/src/calibre/utils/icu.c 2019-09-13 04:46:46.000000000 +0200
++++ calibre-3.48.0/src/calibre/utils/icu.c 2020-12-05 09:20:59.063932000 +0100
+@@ -243,14 +243,14 @@
+
+ a = python_to_icu(a_, &asz);
+ if (a == NULL) goto end;
+- if (asz == 0) { found = TRUE; goto end; }
++ if (asz == 0) { found = true; goto end; }
+ b = python_to_icu(b_, &bsz);
+ if (b == NULL) goto end;
+
+ search = usearch_openFromCollator(a, asz, b, bsz, self->collator, NULL, &status);
+ if (U_SUCCESS(status)) {
+ pos = usearch_first(search, &status);
+- if (pos != USEARCH_DONE) found = TRUE;
++ if (pos != USEARCH_DONE) found = true;
+ }
+ end:
+ if (search != NULL) usearch_close(search);
+diff -Naur calibre-3.48.0.orig/src/calibre/utils/matcher.c calibre-3.48.0/src/calibre/utils/matcher.c
+--- calibre-3.48.0.orig/src/calibre/utils/matcher.c 2019-09-13 04:46:46.000000000 +0200
++++ calibre-3.48.0/src/calibre/utils/matcher.c 2020-12-05 09:26:57.800932000 +0100
+@@ -15,7 +15,6 @@
+ #define inline
+ #endif
+
+-typedef unsigned char bool;
+ #define TRUE 1
+ #define FALSE 0
+ #define MAX(x, y) ((x > y) ? x : y)