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

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

[Octave-bug-tracker] [bug #38694] print() command with -dpng flag fails


From: anonymous
Subject: [Octave-bug-tracker] [bug #38694] print() command with -dpng flag fails for certain filenames
Date: Tue, 09 Apr 2013 22:07:37 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:19.0) Gecko/20100101 Firefox/19.0

URL:
  <http://savannah.gnu.org/bugs/?38694>

                 Summary: print() command with -dpng flag fails for certain
filenames
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 09 Apr 2013 10:07:35 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: John Schneeloch
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: Mac OS

    _______________________________________________________

Details:

There seems to be some inconsistent behavior as far as what the print()
command considers a valid filename, where the -dpng flag  result in errors or
freezing while the -depsc flag prints without a problem. For png files, e.g.


print('~/Downloads/test folder/test.png', '-dpng')


if there are unescaped spaces in the filename, I get the following error


GPL Ghostscript 9.05: Unrecoverable error, exit code 1


and if there are no unescaped spaces but the filename contains '~' then for 

print('~/Downloads/test\ folder/test.png')

I get


#GPL Ghostscript 9.05: **** Could not open the file ~/Downloads/test
folder/test.png .
#GPL Ghostscript 9.05: Unrecoverable error, exit code 1


Most strangely, it will freeze if I have a dash surrounded by two spaces,
e.g., 

print('Users/myUserName/Downloads/test - folder/test.png')

though this works if I escape the spaces with backslashes. 

For eps, on the other hand, everything works regardless of tildes or spaces in
the filename.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38694>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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