This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/23262] [migwin32] rewind truncates file


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-09-03 10:15 -------
OK, it's worse than I thought. When you open a file with O_BINARY, it is opened
using Unix conventions, and you need to add yourself the \r in the right places.

Otherwise, you can use the Windows CRLF convention, but then lseek and ftruncate
are *not* usable. Not at all.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23262


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]