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

[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: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #50297] csv2cell does not ignore CR in CRLF files
Date: Mon, 20 Feb 2017 13:24:28 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40

Update of bug #50297 (project octave):

                  Status:                    None => Confirmed              
                 Release:                     dev => other                  

    _______________________________________________________

Follow-up Comment #2:

On Mageia-5 linux I can confirm this:

>> format compact
>> fid = fopen ('a_CRLF.csv', 'w')
fid =  21
>> fprintf (fid, "a\r\n1\r\n");
>> fclose (fid)
ans = 0
>> fid = fopen ('a_CRLF.csv', 'r')
fid =  21
>> txt = fread (fid, Inf, "char=>char")'
txt = a
1
>> fclose (fid)
ans = 0
>> uint16(txt)
ans =
  97  13  10  49  13  10
>> a = csv2cell ('a_CRLF.csv')
a =
{
  [1,1] = a
  [2,1] = 1
}
>> uint16(a{1})
ans =
  97  13
>> uint16(a{2})
ans =
  49  13


Yet I have no idea how to solve this.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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