[tex-live] epstopdf binmode for output

T T t34www at googlemail.com
Mon Sep 14 11:28:53 CEST 2009


Another problem with epstopdf. Output should be written in binary mode
or binary data gets mangled. Patch below. I'm surprised that nobody
noticed this before.



Index: texmf/scripts/epstopdf/epstopdf.pl
--- texmf/scripts/epstopdf/epstopdf.pl	(revision 15266)
+++ texmf/scripts/epstopdf/epstopdf.pl	(working copy)
@@ -260,6 +260,7 @@
 else {
   open(OUT,">$OutputFilename") or error "Cannot write \"$OutputFilename\"";
+binmode OUT;

 # reading a cr-eol file on a lf-eol system makes it impossible to parse
 # the header and besides it will read the intire file into yor line by line

More information about the tex-live mailing list