Andre Poenitz <[EMAIL PROTECTED]> writes:
| On Wed, Jan 08, 2003 at 09:55:18AM +0100, Claus Hentschel wrote:
| > Lyx should run independent from the mode a drive is mounted. Therefore we
| > need binary mode in some cases and text mode in some other cases whereas in
| > most cases it doesn't matter.
| >
| > Of course it could be done easier with
| > ifstream ifs(tmp.c_str(), ios::in | ios::text);
| > Maybe we should include that instead ;-) And we can rewrite all calls to
| > open a file for both reading and writing.
|
| Does that work?
ios::text? No. It is a non-standard flag.
| > But: is os::text/binary supported on all systems? My experiences with SunOS
| > as well as with AIX and HP/UX some years ago have shown that their compilers
| > don't knew these flags!
|
| Because there is no such distinction on Unix, support for it is somewhat of
| a luxury. Conformant compilers must provide that luxury, though.
ios::binary otoh is a standard flag and should work everywhere.
--
Lgb