[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50297] csv2cell does not ignore CR in CRLF fi
From: |
A.R. Burgers |
Subject: |
[Octave-bug-tracker] [bug #50297] csv2cell does not ignore CR in CRLF files |
Date: |
Mon, 13 Feb 2017 14:02:26 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 |
URL:
<http://savannah.gnu.org/bugs/?50297>
Summary: csv2cell does not ignore CR in CRLF files
Project: GNU Octave
Submitted by: arb
Submitted on: Mon 13 Feb 2017 07:02:24 PM UTC
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
csv files with CRLF line endings results strings containing a CR, with can
lead to unexpected results.
Consider the file a_CRLF.csv:
csh}127: file a_CRLF.csv
a_CRLF.csv: ASCII text, with CRLF line terminators
csh?128: od -c a_CRLF.csv
0000000 a \r \n 1 \r \n
0000006
and the following script
pkg load io;
a_CRLF = csv2cell('a_CRLF.csv')
double(a_CRLF{1,1})
it produces this output
a_CRLF =
{
[1,1] = a
[2,1] = 1
}
ans =
97 13
note the 13 entry.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50297>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50297] csv2cell does not ignore CR in CRLF files,
A.R. Burgers <=