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: 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/


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