Missing information in print docu

John W. Eaton jwe at octave.org
Thu Feb 5 16:13:08 CST 2009


On  5-Feb-2009, Stefan Pofahl wrote:

| > What error do you see?
| Here are the two commands:
| octave-3.0.3.exe:16> line_hdl = plot(0);
| octave-3.0.3.exe:17> print("e:\\foo.ps", '-landscape', '-dps');
| 
| Here is the output:
| error: drawnow: nonexistent directory `e:'
| error: evaluating if command near line 47, column 7
| error: evaluating if command near line 45, column 5
| error: called from `drawnow' in file
| `C:\Programme\Octave\share\octave\3.0.3\m\plot\drawnow.m'
| error: evaluating if command near line 412, column 3
| error: called from `print' in file
| `C:\Programme\Octave\share\octave\3.0.3\m\plot\print.m'
| octave-3.0.3.exe:17>

I checked in the following change for the current development sources.

  http://hg.savannah.gnu.org/hgweb/octave/rev/f3579c1d6be9

In 3.0.x, drawnow is a .m file and it uses fileparts to get the
directory part of the name.

Can someone who has Matlab on a Windows system tell me what the
following return?

  [a, b, c] = fileparts ('c:\foo.ps')
  isdir ('c:')
  isdir ('c:\')

In Octave, it looks like fileparts is returning 'c:', 'foo', and
'.ps', and isdir ('c:') returns false, while I would expect
isdir ('c:\') to return true.

jwe


More information about the Bug-octave mailing list