This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]