[Poppler-bugs] [Bug 29329] New: Binary I/O on Windows doesn't work when using redirection
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jul 30 19:01:54 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=29329
Summary: Binary I/O on Windows doesn't work when using
redirection
Product: poppler
Version: unspecified
Platform: x86 (IA32)
OS/Version: Windows (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: poppler-bugs at lists.freedesktop.org
ReportedBy: net147 at gmail.com
Created an attachment (id=37478)
--> (https://bugs.freedesktop.org/attachment.cgi?id=37478)
Fix binary I/O on Windows when using redirection
If you use the poppler utilities (pdffonts, pdfimages, pdfinfo, pdftoabw,
pdftohtml, pdftoppm, pdftops, pdftotext) on Windows feed a PDF binary as input
via stdin, the program reads it in text mode instead of binary mode. Similarly
if you output a binary to stdout and redirect to a file, it will write it in
text mode. This results in the binary data being corrupted and it is a result
of Windows using text mode by default for stdin, stdout, stderr and file
streams.
The attached patch resolves this by changing the default mode to binary for
these utilities.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Poppler-bugs
mailing list