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

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

[Octave-bug-tracker] [bug #58055] ftell() incorrect on MS Windows platfo


From: Rik
Subject: [Octave-bug-tracker] [bug #58055] ftell() incorrect on MS Windows platforms if file is not encoded with CRLF line endings
Date: Fri, 10 Apr 2020 19:36:08 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #16, bug #58055 (project octave):

The results from ftello are strange, but passibly consistent with what I
reported.  To the actual, true offset, one needs to add or subtract 1
multiplied by the number of lines remaining.  In this case, the true position
is 1, and there are 6 lines in "foobar" as a column vector in the file.  Hence
the position is 7.

Within Octave, it was subtraction rather than addition.  The true position
should have been 52, but the reported position was 29 which was the result if
the  one had to subtract the number of lines remaining.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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