When Created: 03/02/1998 03:43:31
Against DJGPP version: 2.01
By whom: firstname.lastname@example.org
Abstract: File data is erased when opened for random access
I opened a file using the following statements:
ff.open("hallo.hoi" | ios::binary | ios::in | ios::out);
but the file data was erased after I opened it this way.
It shouldn't be erased, because if you want to have it erased then you also
have to give the option ios::trunc in the open mode.
Under Borland C++ it does work properly: the file is just opened for random
access without being erased.
What can I do about this?
Note added: 03/06/1998 04:57:09
By whom: email@example.com
I met the same problem with class fpstream (part of TurboVision
port used in RHIDE) with C++ library from lgp272b.zip. Installing gcc 2.8.0
and lgpp280b.zip fixes the problem (Note name of libstdcx.a is now changed
it is libstdcxx.a for 2.8.0, remove old one to avoid linking it accidentally)
Closed on 04/13/1999 07:00:55: This bug is in the C++ library; it is fixed in GCC 2.8.0 and later.
By whom: firstname.lastname@example.org