[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46493] Incorrect result from fscanf and scanf
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #46493] Incorrect result from fscanf and scanf with %i format |
Date: |
Wed, 20 Jan 2016 02:59:29 +0000 |
User-agent: |
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1) |
Follow-up Comment #10, bug #46493 (project octave):
I found the point in the code that needs to be modified. It is in
corefcn/oct-stream.cc. I added the following at line 1155:
else if (c2 == '8' || c2 == '9')
{
// FIXME: Would like to set error state on octave stream.
// See bug #46493. But only std::istream is input to fcn
// error ("internal failure to match octal format");
ref = 0;
}
Unfortunately, there is no easy way to get at the error function of the
octave-stream which in order to set the errmsg variable. So, this probably
won't get fixed.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46493>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #46493] Incorrect result from fscanf and scanf with %i format,
Rik <=