This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: GCC program always opening files in text mode
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: <Isaac dot Pacht at smed dot com>,<cygwin at cygwin dot com>
- Date: Sat, 23 Mar 2002 09:37:22 +1100
- Subject: RE: GCC program always opening files in text mode
> -----Original Message-----
> From: Isaac.Pacht@smed.com [mailto:Isaac.Pacht@smed.com]
> Sent: Saturday, March 23, 2002 2:08 AM
> To: cygwin@cygwin.com
> Subject: RE: GCC program always opening files in text mode
>
>
>
> Thanks, adding "t" to fopen did help. But how do I specify
> text mode for an ofstream?
With difficulty? Seriously though IIRC the C++ specs right ofstreams are
meant to default to text, and provide ios::binary for binary data.
If the above is correct, then I suspect that a patch to libg++ (possibly
just to the ifstream templates is in order.
Rob
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/