This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: CR not stripped when using stream::getline with latest cygwin/gcc 3.1.1 combo?
- From: "Robert Collins" <robert dot collins at syncretize dot net>
- To: "'Dylan Cuthbert'" <dylan at q-games dot com>,<cygwin at cygwin dot com>
- Date: Thu, 18 Jul 2002 23:23:24 +1000
- Subject: RE: CR not stripped when using stream::getline with latest cygwin/gcc 3.1.1 combo?
> -----Original Message-----
> From: cygwin-owner@cygwin.com
> [mailto:cygwin-owner@cygwin.com] On Behalf Of Dylan Cuthbert
> Sent: Thursday, 18 July 2002 11:22 PM
> To: cygwin@cygwin.com
> Subject: CR not stripped when using stream::getline with
> latest cygwin/gcc 3.1.1 combo?
>
>
> Hello all,
>
> There's something up with the latest cygwin (1.3.2-2) and/or
> gcc 3.1.1.
>
> Code that worked fine with text files in cygwin 1.3.10 and
> gcc 3.1.0 is now
> broken. The problem is that the carriage return is being
> left in the text
> data returned by ifstream::getline(). It doesn't matter if
> the file being
> read is on a network mount or simply in a local directory.
> It used to
> strip both. The file, is of course opened in default mode, ie. text.
Default mode is not text. It is determined by whether you link with a
foomode.o file, and your mount table.
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/