[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ghostscript command line
From: |
Carnë Draug |
Subject: |
Re: Ghostscript command line |
Date: |
Fri, 17 Aug 2012 01:03:41 +0100 |
On 13 August 2012 15:01, Martin.Hepperle <address@hidden> wrote:
> Dear all,
>
> while trying Octave on my new WIndows 7 installation I ran across a problem
> with "unusual" path names.
> My installation path contained special characters like "(", which broke the
> "system()" call to execute ghostcript (the same happend with fltk as
> backend, but I did not look into this as I prefer gnuplot for the moment).
>
> I have fixed this in my installation by enclosing the gnuplot binary file
> name in double quotes.
> This occurs in the script file ".../plot/private/__ghostscript__.m" as
> follows:
>
> -----------------------------------------
> if (isempty (opts.binary))
> error ("print:no_ghostscript", "__ghostscript__.m: ghostscript is
> required.");
> elseif (isempty (opts.output))
> cmd = sprintf ("\"%s\" %s", opts.binary, gs_opts); % \"
> added MH
> else
> cmd = sprintf ("\"%s\" %s -sOutputFile=%s", opts.binary, gs_opts,
> opts.output); % \" added MH
> endif
> -----------------------------------------
>
> While this works under Windows, I am not sure whether this will also work
> under Linux.
>
> Maybe one of the maintainers of the plot package can have a look at this.
Hi Martin
thank for your report and patch. This has actually already been fixed
on the development version, also by enclosing the command in quotes.
Bug report: https://savannah.gnu.org/bugs/?36664
Changeset: http://hg.savannah.gnu.org/hgweb/octave/rev/1c7956c661a8
Still, thank you very much,
Carnë