Similar problem with DJGPP
Andris Pavenis
pavenis@latnet.lv
Wed Mar 20 01:34:00 GMT 2002
I had similar problem with DJGPP where LF --> CR LF conversion is being done
when outputting text file. Initially workarounded (for gcc-3.0.X) it by
removing calls to seekoff() and seekpos() in sync() (file std_fstream.h).
Later modified _M_really_overflow() in fstream.tcc to have similar seekoff()
and seekpos() to restore position correctly after output correctly even when
data length written into file are not equal with one in memory. Unfortunatelly
latest changes for 3.1 broke this latest workaround. I didn't have a time to
look into that more detailed again.
Andris
More information about the Gcc-bugs
mailing list