octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49718] Octave crashes on print/saveas etc whe


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #49718] Octave crashes on print/saveas etc when installed on a directory with parenthesis
Date: Mon, 4 Nov 2019 16:14:05 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

Follow-up Comment #55, bug #49718 (project octave):

@Markus: Ok, so the explanation is just above. We use ghostscript as an
intermediate to write the gl2ps inputstream to an eps file:


  ## As epstool does not work with pipes, a subshell is used to
  ## permit piping.  Since this solution does not work with the DOS
  ## command shell, the -tight and -preview options are disabled if
  ## output must be piped.

  ## DOS Shell:
  ##   gs.exe [...] -sOutputFile=<filein> - & epstool -bbox -preview-tiff
<filein> <fileout> & del <filein>


The following change will remove the spurious temporary file name. Does it fix
the eps outputs?


diff -r 2f38c2681b3e scripts/plot/util/print.m
--- a/scripts/plot/util/print.m Mon Nov 04 12:22:23 2019 -0800
+++ b/scripts/plot/util/print.m Mon Nov 04 22:08:39 2019 +0100
@@ -889,7 +889,7 @@
                                   "device", epsdevice,
                                   "source", "-",
                                   "output", filein);
-        cmd = sprintf ("%s %s & %s", gs_cmd, filein, cmd);
+        cmd = sprintf ("%s & %s", gs_cmd, cmd);
       else
         cmd = sprintf ("cat > %s ; %s", filein, cmd);
       endif


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?49718>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]