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

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

[Octave-bug-tracker] [bug #52479] textscan ignores leading spaces when c


From: Rik
Subject: [Octave-bug-tracker] [bug #52479] textscan ignores leading spaces when creating cell from string/file
Date: Thu, 23 Nov 2017 18:18:59 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #7, bug #52479 (project octave):

Can the original reporter try the following in Matlab?


a = "\t\ta\tb\tc\n"
textscan(a, '%s', 'delimiter', {sprintf('\t')})


In Octave, this is returning a 4x1 cell array.  Whereas with just '\t' a 5x1
cell array is returned.

Also, I updated the patch from comment #2 and added BIST tests for this bug
report in file-io.cc.





(file #42464)
    _______________________________________________________

Additional Item Attachment:

File name: 52479.cset1                    Size:2 KB


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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