bugGNU Octave - Bugs: bug #38694, print() command with -dpng flag...

 
 

bug #38694: print() command with -dpng flag fails for certain filenames

Submitter:  None
Submitted:  Tue 09 Apr 2013 10:07:35 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  John Schneeloch Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.4
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 10 Apr 2013 11:42:21 PM UTC, comment #2: 

Spaces are handled correctly in the dev version but the use of the tilde '~' was not.  I corrected that in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/d4ce14c19c2c).  You can either apply the changeset manually or wait until the next major release of Octave.

Rik <rik5>
Group administrator
Wed 10 Apr 2013 02:38:35 AM UTC, comment #1: 

Thanks for your bug report. This problem has already been reported and fixed in the development release of Octave. You can wait for the next major release of Octave or you can patch your copy of Octave with the fix:

http://hg.savannah.gnu.org/hgweb/octave/rev/1c7956c661a8

Mike Miller <mtmiller>
Group Member
Tue 09 Apr 2013 10:07:35 PM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-10 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Operating SystemMac OS Any
        Dependencies- Depends on bugs #36664

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code