[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50979] csv2cell does not ignore CR
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #50979] csv2cell does not ignore CR |
Date: |
Sun, 14 May 2017 06:27:12 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46 |
Follow-up Comment #2, bug #50979 (project octave):
On Windows this seems to work fine for me:
>> format compact
>> version
ans = 4.3.0+
>> pkg list io
Package Name | Version | Installation directory
--------------+---------+-----------------------
io *| 2.4.7 |
...\Octave\OCTAVE~1.0_V\share\octave\packages\io-2.4.7
>> csv = 'bug2_CRLF.csv'
csv = bug2_CRLF.csv
>> b = csv2cell(csv, ';');
>> is_char = cellfun(@ischar, b(2,:))
is_char =
0 0
>> is_numeric = cellfun(@isnumeric, b(2,:))
is_numeric =
1 1
>> csv = 'bug2_LF.csv'
csv = bug2_LF.csv
>> b = csv2cell(csv, ';');
>> is_char = cellfun(@ischar, b(2,:))
is_char =
0 0
>> is_numeric = cellfun(@isnumeric, b(2,:))
is_numeric =
1 1
>>
Later today I'll try on one of my Linux boxes if I can reproduce it there.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50979>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/