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 From: "Robert Collins" To: "'Dylan Cuthbert'" , Subject: RE: CR not stripped when using stream::getline with latest cygwin/gcc 3.1.1 combo? Date: Thu, 18 Jul 2002 23:23:24 +1000 Message-ID: <000101c22e5e$4df04270$0200a8c0@lifelesswks> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: Importance: Normal > -----Original Message----- > From: cygwin-owner AT cygwin DOT com > [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Dylan Cuthbert > Sent: Thursday, 18 July 2002 11:22 PM > To: cygwin AT cygwin DOT 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/