egcs-1.1.1 - read of istream with ios::bin doesnt work?
Johann Petrak
johann@ai.univie.ac.at
Wed Dec 1 10:14:00 GMT 1999
I wonder why
ifstream in ("test1.file",ios::bin);
in.read(buffer,10);
will read in 0 characters (this is also returned
by in.gcount()), while
ifstream in ("test1.file");
in.read(&buf,10);
will work just OK.
I am experiencing this with
Reading specs from
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
as well as the cygwin port of egcs-2.91.57 19980901 (egcs-1.1 release)
Johann
PS: ios::binary seems to be same as ios::bin
More information about the Gcc-bugs
mailing list