Immediately after releasing the cvs tarball I noticed a couple of problems
with the Octave bindings when using Octave 2.1.52 in a Debian sid (a.k.a.
unstable) system.
1) toggle_plplot_use does not work anymore
I have here:
$ octave
GNU Octave, version 2.1.52 (i386pclinuxgnu).
[...]
octave:1> toggle_plplot_use
error: findstr: expecting first two arguments to be strings
error: evaluating if command near line 47, column 3
error: called from `findstr'in file
`/usr/share/octave/2.1.52/m/strings/findstr.m'
error: evaluating assignment expression near line 35, column 14
error: near line 35 of file
`/usr/share/octave/site/m/PLplot/toggle_plplot_use.m'
This problem happens because plplot_octave_plot does not work in 2.1.52
as in 2.1.50:
$ octave
GNU Octave, version 2.1.52 (i386pclinuxgnu).
[...]
octave:1> plplot_octave_path
ans = [](0x0)
$ octave
GNU Octave, version 2.1.50 (i386pclinuxgnu).
[...]
octave:1> plplot_octave_path
ans = /usr/share/plplot_octave//
I think that the problem comes from the different treatment of global
variables in both versions. Indeed:
$ octave
octave:1> global foo; exist("foo")
ans = 1
$ octave
GNU Octave, version 2.1.50 (i386pclinuxgnu).
[...]
octave:1> global foo; exist("foo")
ans = 0
2) Even when I circumvent the problem above by explicitly giving the path,
there are still problems with toggle_plplot_use:
$ octave
GNU Octave, version 2.1.50 (i386pclinuxgnu).
[...]
plplot_octave_path("/usr/share/plplot_octave//"); toggle_plplot_use
*** glob:
 Builtin Function: glob (PATTERN)
[...]
The help for the glob function is shown twice. The problem is that the
glob function has a different behavior in both versions. As a matter of
fact, '[glob("*")]' does not work in 2.1.52, but 'glob("*")' does.
3) When specifying a driver which has file output (like ps or xfig), I can
only save the file if I give the absolute path. For instance, entering
"foo.ps" does not work, but "/tmp/foo.ps" does. I have no clue about the
origin of the bug.
We must absolutely fix these problems before the 5.3.0 release, since Octave
2.1.52 is spreading widely and is the official version of Octave for the
next Debian release.

Rafael
