|
From: | John W. Eaton |
Subject: | [Octave-bug-tracker] [bug #58055] ftell() incorrect on MS Windows platforms if file is not encoded with CRLF line endings |
Date: | Thu, 9 Apr 2020 13:52:22 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #12, bug #58055 (project octave): ftell is not reliable for files opened in text mode. If I understand correctly, when you open a file in text mode on a Windows system, then CRLF line endings are translated. Octave will only see a LF ('\n') character. I don't think that is something that Octave does, but is a feature of opening and reading a file in text mode. Maybe we can improve the documentation. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?58055> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |