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: Roman Hiestand
Subject: [Octave-bug-tracker] [bug #35852] fscanf does not read full file
Date: Thu, 07 Jun 2012 16:01:12 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0

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

You're welcome.
I'm not sure whether we can blame MS' C++ library here. Please keep in mind
that the MinGW build of Octave 3.6.1 has the same bug, and this one uses
libstdc++. I don't know what the common denominator is.
I think it's possible that the same bug exists on *nix too, but it simply does
not occur because the buffer size is very big (on Windows, ungetc's buffer
size is 4096 bytes). The error happens if the '-' is the last character in the
old buffer, and the first digit triggers a reload. There's a certain
probability for that pattern, with big buffers this probability decreases.

About quoting: Sure, go ahead.
Thanks for reviewing and including my patch!


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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