Bug#183517: epstopdf does not handle spaces in file names
Package: tetex-bin
Version: 1.0.7+20011202-7.1
epstopdf does not properly quote the output file name when passing it to
ghostscript. The following patch fixes the problem:
*** epstopdf.org Wed Mar 5 14:38:45 2003
--- epstopdf Wed Mar 5 14:38:50 2003
***************
*** 183,189 ****
if ($::opt_gs) {
my $pipe = "$GS -q -sDEVICE=pdfwrite $GSOPTS " .
"-dAutoRotatePages=/None " .
! "-sOutputFile=$OutputFilename - -c quit";
debug "Ghostscript pipe:", $pipe;
open(OUT,"|$pipe") or error "Cannot open Ghostscript for piped input";
}
--- 183,189 ----
if ($::opt_gs) {
my $pipe = "$GS -q -sDEVICE=pdfwrite $GSOPTS " .
"-dAutoRotatePages=/None " .
! "\"-sOutputFile=$OutputFilename\" - -c quit";
debug "Ghostscript pipe:", $pipe;
open(OUT,"|$pipe") or error "Cannot open Ghostscript for piped input";
}
Reply to: