octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #38834] strread crashes on '%g' format


From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #38834] strread crashes on '%g' format
Date: Fri, 26 Apr 2013 06:52:19 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0

URL:
  <http://savannah.gnu.org/bugs/?38834>

                 Summary: strread crashes on '%g' format
                 Project: GNU Octave
            Submitted by: arb
            Submitted on: Fri 26 Apr 2013 06:52:18 AM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: Any

    _______________________________________________________

Details:

a=strread('1.0,'%g') is incorrect, but:

octave 3.6.4 reports an 'out-of-bound' error:

octave:1> a=strread('1.0','%g')
error: strread: A(I): index out of bounds; value 1 out of bound 0
error: called from:
error:   /usr/share/octave/3.6.4/m/io/strread.m at line 287, column 7
octave:1>

Would be nice to have a more informative message,
as in matlab R2012b:

>> a=strread('1.0','%g')
Error using dataread
Badly formed format string.

Error in strread (line 49)
    [varargout{1:nlhs}]=dataread('string',varargin{:}); %#ok<REMFF1>





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38834>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]