public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* CR not stripped when using stream::getline with latest cygwin/gcc 3.1.1 combo?
@ 2002-07-18  7:48 Dylan Cuthbert
  2002-07-18  8:05 ` Robert Collins
  0 siblings, 1 reply; 3+ messages in thread
From: Dylan Cuthbert @ 2002-07-18  7:48 UTC (permalink / raw)
  To: cygwin

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.

Is this intentional, ie. a "feature" of the newer stdlib/gcc and therefore
an oversight in our code?  Or is it a problem somewhere in the configuration
of the latest version of gcc/stdlib for cygwin?

I think this problem is linked to the spurious cvs error I reported last
week that occurs every time I use cvs now. (started occurring after updating
cygwin et al)

Regards

--
---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com




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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: CR not stripped when using stream::getline with latest cygwin/gcc 3.1.1 combo?
  2002-07-18  7:48 CR not stripped when using stream::getline with latest cygwin/gcc 3.1.1 combo? Dylan Cuthbert
@ 2002-07-18  8:05 ` Robert Collins
  2002-07-18  9:10   ` Dylan Cuthbert
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Collins @ 2002-07-18  8:05 UTC (permalink / raw)
  To: 'Dylan Cuthbert', cygwin



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: CR not stripped when using stream::getline with latest cygwin/gcc 3.1.1 combo?
  2002-07-18  8:05 ` Robert Collins
@ 2002-07-18  9:10   ` Dylan Cuthbert
  0 siblings, 0 replies; 3+ messages in thread
From: Dylan Cuthbert @ 2002-07-18  9:10 UTC (permalink / raw)
  To: cygwin

> Default mode is not text. It is determined by whether you link with a
> foomode.o file, and your mount table.

My STL library documentation for ifstream open says default mode is text,
but do you mean "text mode" with regards to what cygwin thinks is text?

Is it because Cygwin is installed in "Unix" mode?  Although, this is the
mode I've always installed Cygwin in.  So did something to do with this
change since 1.3.10?

Thanks for the very quick response.

---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com




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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-18 13:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-18  7:48 CR not stripped when using stream::getline with latest cygwin/gcc 3.1.1 combo? Dylan Cuthbert
2002-07-18  8:05 ` Robert Collins
2002-07-18  9:10   ` Dylan Cuthbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).