CBL-Mariner/SPECS-EXTENDED/libcdr/icu-68-1-build-fix.patch

27 строки
993 B
Diff

From bf3e7f3bbc414d4341cf1420c99293debf1bd894 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos@collabora.com>
Date: Wed, 4 Nov 2020 16:23:01 +0100
Subject: [PATCH] Fix icu-68.1 build
This is really similar to LibreOffice core.git
<https://gerrit.libreoffice.org/c/core/+/105151>.
Change-Id: I91c5a9a5f573086d06428b16a459852d993ea31f
---
src/lib/libcdr_utils.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/libcdr_utils.cpp b/src/lib/libcdr_utils.cpp
index 09ab42e..250f0a0 100644
--- a/src/lib/libcdr_utils.cpp
+++ b/src/lib/libcdr_utils.cpp
@@ -108,7 +108,7 @@ static unsigned short getEncoding(const unsigned char *buffer, unsigned bufferLe
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();