bugGNU Octave - Bugs: bug #55479, dlmread('test.csv','\t',1) fails...

 
 

bug #55479: dlmread('test.csv','\t',1) fails with parsing Range error.

Submitter:  Alois Schlögl <schloegl>
Submitted:  Tue 15 Jan 2019 10:59:27 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  schloegl Open/Closed:  * Open
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 15 Jan 2019 06:04:31 PM UTC, comment #1: 

Normally Octave doesn't chase undocumented Matlab behavior because it may change at any time.  See https://www.mathworks.com/help/matlab/ref/dlmread.html where supplying just a row offset is not documented, although perhaps it can be guessed at because C1 defaults to 0?

If you want to go ahead and code a patch for this it would probably be applied.  It doesn't look particularly hard, just a little bit more input validation.

Rik <rik5>
Group administrator
Tue 15 Jan 2019 10:59:27 AM UTC, original submission:  

Trying to read a simple csv file (see attachment) with one header line can be done in matlab like this:

  dlmread('test.csv','\t',1)

This fails in Octave with this error

   error: dlmread: error parsing RANGE



The workaround is of course

  dlmread('test.csv','\t',1,0)

however, it would easier for some users if compatibility would be established.

I've tested this in Octave 4.4.0 and 4.4.1 and the development version.





Alois Schlögl <schloegl>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #45979:  test.csv added by schloegl (18B - text/csv - simple csv test file)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by schloegl (Submitted the item)
  • -email is unavailable- added by schloegl
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-15 schloegl Attached File- Added test.csv, #45979
        Carbon-Copy- Added schloegl

    Back to the top

    Powered by Savane 3.13-04b1.
    Corresponding source code