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

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

[Octave-bug-tracker] [bug #54622] test importdata fails in dev octave wi


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #54622] test importdata fails in dev octave with windows
Date: Tue, 11 Sep 2018 13:52:21 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

Follow-up Comment #57, bug #54622 (project octave):

@Rik: Ah, good catch.  I've updated the changeset, attached.  Checking against
EOF is correct, rather than std::isalpha (next_char)?  I mean, isalpha() is
going to be "locale-specific template" dependent as well, right?  It seems we
should avoid that too.

I was going to add a check to letters in the importdata.m file (i.e., change
one of the "Inf" to "Infj", but then I found the result odd with respect to
Octave command line input:


octave:8> A = [3.1 Infj NA; -Inf NaN 128];
error: 'Infj' undefined near line 1 column 11


The above suggests we can input "Infj" in a file, but not at the command
line.

Also, in the following:


octave:9> A = [3.1 Inf*j NA; -Inf NaN 128]
A =

     3.1000 +   0.0000i        NaN +      Infi         NA +   0.0000i
       -Inf +   0.0000i        NaN +   0.0000i   128.0000 +   0.0000i


how is the that first "Inf*j" acquiring a "NaN" in the real element of the
number?

(file #44983)
    _______________________________________________________

Additional Item Attachment:

File name: octave-dlmread_no_tolower-djs2018sep11.patch Size:1 KB


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54622>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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