From acc02b360917f8a5678c6275fdcc6e8659ae84be Mon Sep 17 00:00:00 2001 From: David Tardon Date: Thu, 20 May 2021 19:26:17 +0200 Subject: [PATCH] fix build with latest ICU --- 0001-fix-build-with-ICU-68.patch | 25 +++++++++++++++++++++++++ libe-book.spec | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 0001-fix-build-with-ICU-68.patch diff --git a/0001-fix-build-with-ICU-68.patch b/0001-fix-build-with-ICU-68.patch new file mode 100644 index 0000000..ae8ae5d --- /dev/null +++ b/0001-fix-build-with-ICU-68.patch @@ -0,0 +1,25 @@ +From edc7a50a06f56992fe21a80afb4f20fbdc5654ed Mon Sep 17 00:00:00 2001 +From: David Tardon +Date: Thu, 20 May 2021 19:24:52 +0200 +Subject: [PATCH] fix build with ICU 68 + +--- + src/lib/EBOOKCharsetConverter.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lib/EBOOKCharsetConverter.cpp b/src/lib/EBOOKCharsetConverter.cpp +index 0d85fa3..c9f8be0 100644 +--- a/src/lib/EBOOKCharsetConverter.cpp ++++ b/src/lib/EBOOKCharsetConverter.cpp +@@ -124,7 +124,7 @@ bool EBOOKCharsetConverter::convertBytes(const char *const in, const unsigned le + m_converterToUTF8.get(), m_converterToUnicode.get(), + &outText, outText + out.size(), &inText, inText + length, + nullptr, nullptr, nullptr, nullptr, +- TRUE, TRUE, &status) ++ true, true, &status) + ; + if (status==U_BUFFER_OVERFLOW_ERROR) + { +-- +2.31.1 + diff --git a/libe-book.spec b/libe-book.spec index 6d52775..940c82b 100644 --- a/libe-book.spec +++ b/libe-book.spec @@ -24,6 +24,8 @@ BuildRequires: pkgconfig(librevenge-stream-0.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(zlib) +Patch0: 0001-fix-build-with-ICU-68.patch + %description %{name} is a library for import of reflowable e-book formats. Currently supported are PalmDoc, TealDoc, Plucker eBook, eReader eBook,