[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline accord
From: |
Toby |
Subject: |
[Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell() |
Date: |
Sun, 29 Mar 2020 16:53:38 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0 |
Follow-up Comment #5, bug #58055 (project octave):
Hi,
there's no issue on Linux either, but I've just figured out that the problem
is related to end-of-line handling under Windows.
Once converting the read in text file to CRLF, fpos() is returning the proper
location and fseek works as expected.
The strange thing: fgetl() seems to return lines based on LF on Windows, too
(like expected on POSIX/UNIX), but internally it obviously does something
different breaking fpos() to work. No clue what's going on! Is someone else
able to explain?
Is fgetl() supposed to return lines by LF on Windows/DOS?
And if yes, why does fpos() fails to report the proper location?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58055>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell(), Toby, 2020/03/27
- [Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell(), John W. Eaton, 2020/03/27
- [Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell(), Rik, 2020/03/28
- [Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell(), Toby, 2020/03/29
- [Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell(), Toby, 2020/03/29
- [Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell(), A.R. Burgers, 2020/03/29
- [Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell(),
Toby <=
- [Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell(), Rik, 2020/03/30
- [Octave-bug-tracker] [bug #58055] fgetl() reads in beyond newline according to following ftell(), Toby, 2020/03/31