[tex-live] epstopdf binmode for output

T T t34www at googlemail.com
Mon Sep 14 20:17:26 CEST 2009


2009/9/14 T T <t34www at googlemail.com>:
> Hi,
>
> 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.
>
> Cheers,
>
> Tomek
>
> 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
>

It looks like Akira suggested the same patch already (although in
another context):

http://www.tug.org/pipermail/tex-live/2009-August/022145.html

Cheers,

Tomek


More information about the tex-live mailing list