From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: paul-ml@is.lg.ua Cc: corinna.vinschen@cityweb.de, cygwin@sourceware.cygnus.com Subject: Re: Cygwin B20 - fseek under gcc fails to reposition on text files Date: Sun, 28 Feb 1999 23:02:00 -0000 Message-ID: <199902171807.NAA16764@envy.delorie.com> References: <36CA92B5.844635AA@cityweb.de> <17817.990217@is.lg.ua> X-SW-Source: 1999-02n/msg00552.html Message-ID: <19990228230200.hfZqJTyOTLbk3RQOCFpbS4Bcw7Baq-VCByTF4u-iUHM@z> > And finally, from where all this stuff might be originated - it may > be done whatever wanted, but if, when writing to console we get clobbered > output without carrage returns, it doesn't cost a cent. That's where > myth of win32 speciality breaks down - Win32 console, as any other > console in cooked mode (Linux, say) performs implicit cr after lf, > when there's no explicit. To add fact to the myth, if you bring up such a file (\n without \r) in notepad, it does not do the right thing - it very explicitly looks for the CR/LF pair to mean a line ending, and no other ending will do. Batch files also cannot have NL endings - they need CR/LF endings. Of course, this really just means that the programmers were short-sighted, but it's still a fact we must live with. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe@sourceware.cygnus.com