GCC program always opening files in text mode
Robert Collins
robert.collins@itdomain.com.au
Fri Mar 22 15:18:00 GMT 2002
> -----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/
More information about the Cygwin
mailing list