summaryrefslogtreecommitdiff
path: root/graphics/libcdr01/files/patch-icu68
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libcdr01/files/patch-icu68')
-rw-r--r--graphics/libcdr01/files/patch-icu6817
1 files changed, 17 insertions, 0 deletions
diff --git a/graphics/libcdr01/files/patch-icu68 b/graphics/libcdr01/files/patch-icu68
new file mode 100644
index 000000000000..466cfea4bae4
--- /dev/null
+++ b/graphics/libcdr01/files/patch-icu68
@@ -0,0 +1,17 @@
+Regressed by https://github.com/unicode-org/icu/commit/c3fe7e09d844
+
+libcdr_utils.cpp:111:35: error: use of undeclared identifier 'TRUE'
+ ucsdet_enableInputFilter(csd, TRUE);
+ ^
+
+--- src/lib/libcdr_utils.cpp.orig 2020-02-02 15:30:44 UTC
++++ src/lib/libcdr_utils.cpp
+@@ -108,7 +108,7 @@ static unsigned short getEncoding(const unsigned char
+ csd = ucsdet_open(&status);
+ if (U_FAILURE(status) || !csd)
+ return 0;
+- ucsdet_enableInputFilter(csd, TRUE);
++ ucsdet_enableInputFilter(csd, true);
+ ucsdet_setText(csd, (const char *)buffer, bufferLength, &status);
+ if (U_FAILURE(status))
+ throw libcdr::EncodingException();