poppler/PDFDoc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 33c3b391dfc3c10b1b63b0b82df4dcb47b71c53a Author: Fredrik Fornwall <fred...@fornwall.net> Date: Tue Dec 19 00:37:44 2017 +0100 PDFDoc: use %c instead of \x to output binary Bug #103873 diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index cdf96ab9..13e3b027 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -36,6 +36,7 @@ // Copyright (C) 2015 André Esser <bepan...@hotmail.com> // Copyright (C) 2016 Jakub Alba <jakuba...@gmail.com> // Copyright (C) 2017 Jean Ghali <jgh...@libertysurf.fr> +// Copyright (C) 2017 Fredrik Fornwall <fred...@fornwall.net> // // To see a description of the changes please see the Changelog file that // came with your tarball or type make ChangeLog if you are building from git @@ -1514,7 +1515,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)
_______________________________________________ poppler mailing list poppler@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/poppler