[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34128] str2num does not return empty correctl
From: |
Ben Barrowes |
Subject: |
[Octave-bug-tracker] [bug #34128] str2num does not return empty correctly, but errors out |
Date: |
Thu, 25 Aug 2011 12:25:17 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.16) Gecko/20101130 Firefox/3.5.16 |
URL:
<http://savannah.gnu.org/bugs/?34128>
Summary: str2num does not return empty correctly, but errors
out
Project: GNU Octave
Submitted by: barrowes
Submitted on: Thu 25 Aug 2011 12:25:16 PM GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: barrowes
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
str2num does not return an empty matrix properly when receiving non-numeric
input.
octave:5> str2num('1+2*a')
stopped in /usr/local/share/octave/3.5.0+/m/strings/str2num.m
debug> dbstack
stopped in:
--> str2num at line 58 [/usr/local/share/octave/3.5.0+/m/strings/str2num.m]
debug>
octave:5>
I have set debug_on_error(1), but I don't think that is the problem because
the eval example works fine:
octave:4> eval ('error ("This is a bad example");',
> 'printf ("This error occurred:\n%s\n", lasterr ());');
This error occurred:
This is a bad example
octave:5>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34128>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #34128] str2num does not return empty correctly, but errors out,
Ben Barrowes <=