libstdc++/82: problem opening a stream in binary mode
Phil Edwards
pedwards@disaster.jaj.com
Mon Aug 21 09:37:00 GMT 2000
The following reply was made to PR libstdc++/82; it has been noted by GNATS.
From: Phil Edwards <pedwards@disaster.jaj.com>
To: wappenschmidt@digital-security.com
Cc: libstdc++-gnats@sourceware.cygnus.com
Subject: Re: libstdc++/82: problem opening a stream in binary mode
Date: Mon, 21 Aug 2000 12:36:51 -0400
On Mon, Aug 21, 2000 at 04:25:41PM -0000, wappenschmidt@digital-security.com wrote:
> >Release: libstdc++.so.2.10.0
> >Environment:
> gcc 2.95.2 on linux and solaris
2.95.2 shipped with the older libstdc++-v2 library. This project (and
bug reporting address) is for libstdc++-v3.
> Opening a stream in binary mode doesn't work in this way:
> ifstream in("binary.dat", ios::binary);
> You can't read any values with ifstream::get().
>
> Opening the binary with
> ifstream in("binary.dat", ios::in|ios::binary);
> does work correctly.
Yep. Just one of the many ways in which libstdc++-v2 is noncompliant with
the standard. This is already okay in -v3.
Phil
More information about the Libstdc++-prs
mailing list