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

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

[Octave-bug-tracker] [bug #50979] csv2cell does not ignore CR


From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #50979] csv2cell does not ignore CR
Date: Tue, 9 May 2017 02:47:06 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0

URL:
  <http://savannah.gnu.org/bugs/?50979>

                 Summary: csv2cell does not ignore CR
                 Project: GNU Octave
            Submitted by: arb
            Submitted on: Tue 09 May 2017 06:47:05 AM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

consider this .csv file


V-1;I-1
-0.255;8.614


the attached script applied on the attached .csv files reports:


ans = 4.3.0+
Package Name  | Version | Installation directory
--------------+---------+-----------------------
          io *|   2.4.7 | $(HOME)/octave-4.3/io-2.4.7

csv = bug2_CRLF.csv
is_char    = 0  1
is_numeric = 1  0

csv = bug2_LF.csv
is_char    = 0  0
is_numeric = 1  1


In case of a CRLF terminated file, the number in row 2,column2 is interpreted
as a string and not converted to a number.

See also https://savannah.gnu.org/bugs/?50297



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 09 May 2017 06:47:05 AM UTC  Name: bug2_CRLF.csv  Size: 23B   By:
arb

<http://savannah.gnu.org/bugs/download.php?file_id=40627>
-------------------------------------------------------
Date: Tue 09 May 2017 06:47:05 AM UTC  Name: bug.m  Size: 278B   By: arb

<http://savannah.gnu.org/bugs/download.php?file_id=40628>
-------------------------------------------------------
Date: Tue 09 May 2017 06:47:05 AM UTC  Name: bug2_LF.csv  Size: 21B   By: arb

<http://savannah.gnu.org/bugs/download.php?file_id=40629>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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