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

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

[Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #53277] textscan(...) does not parse sequence of integers separated by dots (.)
Date: Thu, 8 Mar 2018 14:25:36 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0 SeaMonkey/2.48

Follow-up Comment #13, bug #53277 (project octave):

@Matthias;
That the old textscan.m (in fact, strread.m) worked fine for your use case
turns out to be just coincidence.
In about any general programming/scripting language, trying to read integers
that are separated by decimal separators or exponent characters, in fact by
any character that can be part of a number, is a risky business to start with,
no matter how long the world has been using that convention. Just live with
that, be prudent, never blindly trust docs, and use simple tools rather than
dinosaurs like textscan.

BTW I saw that Matlab's textscan now supports an option to use locales when
reading numbers. Following that in Octave may help solve this issue, OTOH I
fear it'll introduce only more concealed bugs and clashes with other options.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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