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

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

[Octave-bug-tracker] [bug #38587] textread with incorect result


From: Muhali
Subject: [Octave-bug-tracker] [bug #38587] textread with incorect result
Date: Mon, 25 Mar 2013 12:27:17 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0

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

                 Summary: textread with incorect result
                 Project: GNU Octave
            Submitted by: muhali
            Submitted on: Mon 25 Mar 2013 05:27:16 AM PDT
                Category: Libraries
                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: GNU/Linux

    _______________________________________________________

Details:

This may be related to bug#34734 <https://savannah.gnu.org/bugs/?34734>. If
the file 'foo.txt' contains


a b

a b


then [a b] = textread("foo.txt", "%s%s") gives

a = 
{
  [1,1] = a
  [2,1] = 
  [3,1] = b
}
b = 
{
  [1,1] = b
  [2,1] = a
  [3,1] = 
}

Doing instead [a b] = strread ("a b\n\na b", "%s%s") gives

a = 
{
  [1,1] = a
  [2,1] = a
}
b = 
{
  [1,1] = b
  [2,1] = b
}

which is what ML gives in both cases.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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