Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com content-class: urn:content-classes:message Subject: RE: GCC program always opening files in text mode MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sat, 23 Mar 2002 09:37:22 +1100 Message-ID: X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Robert Collins" To: , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g2MMcIo32227 > -----Original Message----- > From: Isaac DOT Pacht AT smed DOT com [mailto:Isaac DOT Pacht AT smed DOT com] > Sent: Saturday, March 23, 2002 2:08 AM > To: cygwin AT cygwin DOT 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/