Fri 31 May 2013 10:28:41 PM UTC, original submission:
Originally reported at http://bugs.debian.org/710423
The print command fails to print to a printer when no filename is specified if various -d options are passed to print. At the very least print should either error on an invalid combination or just ignore and print as if no -d option had been given. I can't say what Matlab does.
Example 1, "print -deps" with gnuplot:
Example 2, "print -dpng" with gnuplot:
... and the following is actually sent to the printer and printed as plain text:
Example 3, "print -deps" with fltk:
No error, but the contents of the EPS are dumped as text to the same terminal that Octave is running in.
Example 4, "print -dpng" with fltk:
Also no error message, but what appears to be the byte content of a PNG is sent as text to the printer and printed, one or two lines of nonsense per page.
I started looking at what _print_parse_opts_ does with these various combinations of options. I assume this can be fixed in there with some logic about whether the output filename was specified or not.
|