poppler: Add printf patch (fixes #1900)
This commit is contained in:
parent
2c6a02811f
commit
8e5c072562
@ -1,7 +1,7 @@
|
|||||||
TERMUX_PKG_HOMEPAGE=https://poppler.freedesktop.org/
|
TERMUX_PKG_HOMEPAGE=https://poppler.freedesktop.org/
|
||||||
TERMUX_PKG_DESCRIPTION="PDF rendering library"
|
TERMUX_PKG_DESCRIPTION="PDF rendering library"
|
||||||
TERMUX_PKG_VERSION=0.61.1
|
TERMUX_PKG_VERSION=0.61.1
|
||||||
TERMUX_PKG_REVISION=1
|
TERMUX_PKG_REVISION=2
|
||||||
TERMUX_PKG_SHA256=1266096343f5163c1a585124e9a6d44474e1345de5cdfe55dc7b47357bcfcda9
|
TERMUX_PKG_SHA256=1266096343f5163c1a585124e9a6d44474e1345de5cdfe55dc7b47357bcfcda9
|
||||||
TERMUX_PKG_SRCURL=https://poppler.freedesktop.org/poppler-${TERMUX_PKG_VERSION}.tar.xz
|
TERMUX_PKG_SRCURL=https://poppler.freedesktop.org/poppler-${TERMUX_PKG_VERSION}.tar.xz
|
||||||
# libcairo and littlecms is used by pdftocairo:
|
# libcairo and littlecms is used by pdftocairo:
|
||||||
|
16
packages/poppler/poppler-PDFDoc.cc.patch
Normal file
16
packages/poppler/poppler-PDFDoc.cc.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
https://bugs.freedesktop.org/show_bug.cgi?id=103873
|
||||||
|
|
||||||
|
diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc
|
||||||
|
index 90f039d8..a5249dcd 100644
|
||||||
|
--- a/poppler/PDFDoc.cc
|
||||||
|
+++ b/poppler/PDFDoc.cc
|
||||||
|
@@ -1503,7 +1503,7 @@ void PDFDoc::writeXRefTableTrailer(Goffset uxrefOffset, XRef *uxref, GBool write
|
||||||
|
void PDFDoc::writeHeader(OutStream *outStr, int major, int minor)
|
||||||
|
{
|
||||||
|
outStr->printf("%%PDF-%d.%d\n", major, minor);
|
||||||
|
- outStr->printf("%%\xE2\xE3\xCF\xD3\n");
|
||||||
|
+ outStr->printf("%%%c%c%c%c\n", 0xE2, 0xE3, 0xCF, 0xD3);
|
||||||
|
}
|
||||||
|
|
||||||
|
void PDFDoc::markDictionnary (Dict* dict, XRef * xRef, XRef *countRef, Guint numOffset, int oldRefNum, int newRefNum, std::set<Dict*> *alreadyMarkedDicts)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user