This is the mail archive of the
libstdc++-prs@sources.redhat.com
mailing list for the libstdc++ project.
Re: libstdc++/82: problem opening a stream in binary mode
- To: nobody at sourceware dot cygnus dot com
- Subject: Re: libstdc++/82: problem opening a stream in binary mode
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: 21 Aug 2000 16:37:00 -0000
- Cc: libstdc++-prs at sourceware dot cygnus dot com,
- Reply-To: Phil Edwards <pedwards at disaster dot jaj dot com>
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