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

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

[Octave-bug-tracker] [bug #47539] textscan is broken


From: Lars Kindermann
Subject: [Octave-bug-tracker] [bug #47539] textscan is broken
Date: Sat, 26 Mar 2016 04:10:52 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

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

                 Summary: textscan is broken
                 Project: GNU Octave
            Submitted by: larskindermann
            Submitted on: Sat 26 Mar 2016 04:10:50 AM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Lars Kindermann
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

in current dev (works fine in 4.0)

Save this as textscantest.m:


FID = fopen('textscantest.m', 'r');
f = textscan(FID, '%s', 'delimiter', '\n');
fclose(FID);
f


and execute! Result:


>> textscantest

f =
{
  [1,1] =
  {
    [1,1] = FID = fope
    [2,1] = ('textsca
    [3,1] = test.m', 'r');
    [4,1] = f = textsca
    [5,1] = (FID, '%s', 'delimiter', '
    [6,1] =
    [7,1] = ');
    [8,1] = fclose(FID);
    [9,1] = f
  }
}
>>


This looks like a wrong interpretion of '\n'

But there must be more bugs, when reading long textfiles some binary garbage
is appearing in the output...





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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