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

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Sep 3 10:15:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list