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

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

[Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #50619] textscan weird behaviour when reading a csv
Date: Thu, 23 Mar 2017 13:09:35 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #1, bug #50619 (project octave):

I've confirmed this behavior in linux with the development version.  The
pertinent code resides in libinterp/corefun/oct-stream.cc, probably
textscan::do_scan().

The only other detail I see is that ";he [deg]" also works, but not ";hea
[deg]".  With ";he [deg]", the total length of the first line is 64
characters, including the carriage-return character.  I presume what is
happening is the first textscan() is searching for the next field after the
first group of reads and advances the file pointer.  But the REPEAT field is
present, "1", so the algorithm should stop after that seventh string field.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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