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

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

[Octave-bug-tracker] [bug #36398] textread & strread ML compatibility in


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #36398] textread & strread ML compatibility in some corner cases (incomplete first data line)
Date: Fri, 04 May 2012 17:50:28 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6

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

                 Summary: textread & strread ML compatibility in some corner
cases (incomplete first data line)
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Fri May  4 19:50:27 2012
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Patch Submitted
             Assigned to: philipnienhuis
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

If the very first line of a data file (-string) is already incomplete,
textread and strread choke on it.
Example:


octave:4> D = textscan ([char(10)], '%f %f')
error: textscan: subscript indices must be either positive integers or
logicals
error: called from:
error:
C:\Programs\Octave\Octave3.6.1_gcc4.6.2\share\octave\3.6.1\m\io\textscan.m at
line 256, column 12 


or


octave:4> [a, b] = strread (['Empty'], 'Empty%f %f')
warning: strread: unable to parse text or file with given format string
error: some elements undefined in return list
error: called from:
error:
C:\Programs\Octave\Octave3.6.1_gcc4.6.2\share\octave\3.6.1\m\io\textscan.m at
line 266, column 9 


Changeset attached (depends on that of bug # 36356)




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri May  4 19:50:27 2012  Name: textread_textscan4.patch  Size: 3kB  
By: philipnienhuis

<http://savannah.gnu.org/bugs/download.php?file_id=25787>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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