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

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

[Octave-bug-tracker] [bug #59848] dlmread returns wrong values when skip


From: Rik
Subject: [Octave-bug-tracker] [bug #59848] dlmread returns wrong values when skipping non-numerical columns
Date: Tue, 12 Jan 2021 18:21:03 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

Update of bug #59848 (project octave):

                  Status:            Works For Me => Confirmed              

    _______________________________________________________

Follow-up Comment #7:

I can reproduce the problem with the data files uploaded by Hartmut.

If I execute 'file dataA.csv' I get


dataA.csv: UTF-8 Unicode (with BOM) text, with CR line terminators


I think this is the source of the problem.  The line terminators are neither
UNIX (LF) nor Windows (CR LF), but old-style Macintosh line terminators (CR).

I used a text editor and search and replace function to substitute UNIX LF for
the CR characters and then dlmread works correctly.

What program generated this file and can you have it create more appropriate
line terminators?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59848>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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