This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Similar problem with DJGPP
- From: Andris Pavenis <pavenis at latnet dot lv>
- To: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, sgm at objexx dot com, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Wed, 20 Mar 2002 09:02:40 +0200
- Subject: Similar problem with DJGPP
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