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

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

[Octave-bug-tracker] [bug #52550] textscan drops delimiter character for


From: Rik
Subject: [Octave-bug-tracker] [bug #52550] textscan drops delimiter character for multi-character, cell-specified delimiter option
Date: Fri, 1 Dec 2017 15:19:10 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #52550 (project octave):

                  Status:               Confirmed => In Progress            

    _______________________________________________________

Follow-up Comment #11:

I amended the patch to include the proposed tests in comment #10 as BIST tests
in file-io.cc.  See the attached 52550.v2.cset.

One problem is that this BIST test is now failing


 %!test <52479>
 %! str = "\t\ta\tb\tc\n";
 %! ret = textscan (str, "%s", "delimiter", {"\t"});
 %! assert (ret, { {''; ''; 'a'; 'b'; 'c'} });


The issue is that the final string 'c' is being returned as "c\n".  This is
not the case if the delimiter is just "\t" without being a cell array.


(file #42547)
    _______________________________________________________

Additional Item Attachment:

File name: 52550.v2.cset                  Size:4 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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