erroneous printing to stdout when printing figures to nonexisting paths

John W. Eaton jwe at bevo.che.wisc.edu
Wed Jan 9 14:27:20 CST 2008


On  8-Jan-2008, Paul Sundvall wrote:

| Description:
| -----------
| 
| When printing a graph to a file and the filename contains a path
| which does not exist, the file is printed to stdout (or possibly stderr).
| 
| 
| Repeat-By:
| ---------
| plot(rand(10,1))
| %this goes fine:
| print('existing_subdir/everything_is_ok.png')
| %this goes bad:
| print('nonexisting_subdir/we_have_a_problem.png')

Please try the following patch.  It will generate an error if the
directory does not already exist.

jwe


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
Url: https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080109/692828b3/attachment.ksh 


More information about the Bug-octave mailing list