libstdc++ [io]fstream cannot open file in binary mode (g++ and egcs)

Andy Rysin arysin@yahoo.com
Tue Jan 25 15:08:00 GMT 2000


> After some experimentation I found out that
>        ofstream fpw (argv[1], ios::binary |
ios::out);
> will work properly, but seems excessive when
ofstream declared explicitely.

> The same thing with
>        ifstream fp (somename, ios::binary);
> vis
>        ifstream fp (somename, ios::binary |
ios::in);

I found this bug about year ago also.
AFAIK this is fixed in latest CVS tree of libstdc++,
not even in libstdc++-2.90.7

Wish luck,
	Andy
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


More information about the Gcc-bugs mailing list