# HG changeset patch # User Fabio Rossi # Date 1339718908 14400 # Node ID 1c7956c661a8da0ea510cee5e56ffefec4516e43 # Parent d213da1a16a6ed0823057eb92df607d187c9608c Support spaces into the path to ghostscript. * scripts/plot/private/__ghostscript__.m: Double quote output file. (Bug # 36664). diff --git a/scripts/plot/private/__ghostscript__.m b/scripts/plot/private/__ghostscript__.m --- a/scripts/plot/private/__ghostscript__.m +++ b/scripts/plot/private/__ghostscript__.m @@ -135,7 +135,7 @@ elseif (isempty (opts.output)) cmd = sprintf ("%s %s", opts.binary, gs_opts); else - cmd = sprintf ("%s %s -sOutputFile=%s", opts.binary, gs_opts, opts.output); + cmd = sprintf ("%s %s -sOutputFile=\"%s\"", opts.binary, gs_opts, opts.output); endif if (! isempty (opts.prepend) && any (strcmpi (opts.device, {"pswrite", "ps2write", "pdfwrite"})))