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

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

[Octave-bug-tracker] [bug #35852] fscanf does not read full file


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #35852] fscanf does not read full file
Date: Wed, 13 Jun 2012 14:25:14 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20100101 Firefox/10.0.4 Iceweasel/10.0.4

Follow-up Comment #26, bug #35852 (project octave):

With the proposed patch to discard '+' and change the sign if '-' has been
read, what happens if the input stream contains something like '-X'?  The read
will fail, but I think the read pointer will be positioned at 'X' then instead
of at the '-' character.  I think that could cause trouble also.  Shouldn't a
failed conversion leave the input pointer unchanged?

Note that saving the stream position and seeking won't work reliably either,
because seeking is not guaranteed to work if someone has opened the file in
text mode on a Windows system.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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