public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: DJ Delorie <dj@delorie.com>
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: Wed, 17 Feb 1999 10:07:00 -0000	[thread overview]
Message-ID: <199902171807.NAA16764@envy.delorie.com> (raw)
In-Reply-To: < 17817.990217@is.lg.ua > (message from Paul Sokolovsky on Wed, 17Feb 1999 19:37:11 +0200)

>    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

WARNING: multiple messages have this Message-ID
From: DJ Delorie <dj@delorie.com>
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	[thread overview]
Message-ID: <199902171807.NAA16764@envy.delorie.com> (raw)
Message-ID: <19990228230200.hfZqJTyOTLbk3RQOCFpbS4Bcw7Baq-VCByTF4u-iUHM@z> (raw)
In-Reply-To: <17817.990217@is.lg.ua>

>    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


  parent reply	other threads:[~1999-02-17 10:07 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-16  7:41 Earnie Boyd
     [not found] ` < 19990216154134.3413.rocketmail@send104.yahoomail.com >
1999-02-16 17:52   ` Christopher Faylor
     [not found]     ` < 19990216205243.L16511@cygnus.com >
1999-02-16 18:18       ` DJ Delorie
1999-02-28 23:02         ` DJ Delorie
1999-02-17  2:01     ` Corinna Vinschen
1999-02-17  9:36       ` Re[2]: " Paul Sokolovsky
     [not found]         ` < 17817.990217@is.lg.ua >
1999-02-17 10:07           ` DJ Delorie [this message]
     [not found]             ` < 199902171807.NAA16764@envy.delorie.com >
1999-02-17 19:16               ` Larry Hall
     [not found]                 ` < 3.0.5.32.19990217221306.0162b070@pop.ma.ultranet.com >
1999-02-17 19:19                   ` DJ Delorie
     [not found]                     ` < 199902180318.WAA20394@envy.delorie.com >
1999-02-17 20:13                       ` Larry Hall
1999-02-28 23:02                         ` Larry Hall
1999-02-28 23:02                     ` DJ Delorie
1999-02-28 23:02                 ` Larry Hall
1999-02-28 23:02             ` DJ Delorie
1999-02-17 13:37         ` Corinna Vinschen
1999-02-19  2:30           ` Re[2]: " Paul Sokolovsky
     [not found]             ` < 17776.990218@is.lg.ua >
1999-02-19  6:36               ` Christopher Faylor
1999-02-22  3:26                 ` Re[2]: " Paul Sokolovsky
     [not found]                   ` < 13561.990222@is.lg.ua >
1999-02-22  8:55                     ` Cygwin participation threshold DJ Delorie
     [not found]                       ` < 199902221654.LAA07362@envy.delorie.com >
1999-02-22 10:33                         ` Carl Zmola
     [not found]                           ` < 19990222183222023.AAA254@carl_zmola >
1999-02-22 11:21                             ` Fergus Henderson
1999-02-28 23:02                               ` Fergus Henderson
1999-02-22 12:32                             ` DJ Delorie
1999-02-28 23:02                               ` DJ Delorie
1999-02-24  0:08                             ` Christopher Faylor
     [not found]                               ` < 19990223214848.A23525@cygnus.com >
1999-02-24  5:51                                 ` Fergus Henderson
     [not found]                                   ` < 19990225005148.53402@mundook.cs.mu.OZ.AU >
1999-02-24  9:18                                     ` Christopher Faylor
1999-02-24 19:23                                       ` Weiqi Gao
     [not found]                                         ` < 36D4C298.32C1C355@a.crl.com >
1999-02-25  0:23                                           ` Fergus Henderson
1999-02-25  6:01                                             ` Weiqi Gao
1999-02-25 13:48                                               ` Re[2]: " Paul Sokolovsky
1999-02-28 23:02                                                 ` Paul Sokolovsky
1999-02-28 23:02                                               ` Weiqi Gao
1999-02-28 23:02                                             ` Fergus Henderson
1999-02-28 23:02                                         ` Weiqi Gao
     [not found]                                       ` < 19990224121846.A25762@cygnus.com >
1999-02-25  0:14                                         ` Fergus Henderson
     [not found]                                           ` < 19990225191420.16813@mundook.cs.mu.OZ.AU >
1999-02-25  1:00                                             ` Lam Pui Yuen
     [not found]                                               ` < Pine.BSI.3.95.990225170005.16688A-100000@topaz.hknet.com >
1999-02-25  1:09                                                 ` Lam Pui Yuen
1999-02-28 23:02                                                   ` Lam Pui Yuen
1999-02-28 23:02                                               ` Lam Pui Yuen
1999-02-28 23:02                                           ` Fergus Henderson
1999-02-28 23:02                                       ` Christopher Faylor
1999-02-28 23:02                                   ` Fergus Henderson
1999-02-24 10:37                                 ` Carl Zmola
     [not found]                                   ` < 19990224183738302.AAA218@carl_zmola >
1999-02-24 10:44                                     ` Christopher Faylor
     [not found]                                       ` < 19990224134450.B26262@cygnus.com >
1999-02-24 10:48                                         ` Carl Zmola
1999-02-28 23:02                                           ` Carl Zmola
1999-02-28 23:02                                       ` Christopher Faylor
1999-02-28 23:02                                   ` Carl Zmola
1999-02-28 23:02                               ` Christopher Faylor
1999-02-28 23:02                           ` Carl Zmola
1999-02-28 23:02                       ` DJ Delorie
1999-02-28 23:02                   ` Re[2]: Cygwin B20 - fseek under gcc fails to reposition on text files Paul Sokolovsky
1999-02-28 23:02                 ` Christopher Faylor
1999-02-28 23:02             ` Re[2]: " Paul Sokolovsky
1999-02-28 23:02           ` Corinna Vinschen
1999-02-28 23:02         ` Re[2]: " Paul Sokolovsky
     [not found]       ` < 36CA92B5.844635AA@cityweb.de >
1999-02-17  8:07         ` DJ Delorie
1999-02-28 23:02           ` DJ Delorie
1999-02-17 13:46         ` J. J. Farrell
1999-02-28 23:02           ` J. J. Farrell
1999-02-28 23:02       ` Corinna Vinschen
1999-02-28 23:02     ` Christopher Faylor
1999-02-28 23:02 ` Earnie Boyd
  -- strict thread matches above, loose matches on Subject: below --
1999-02-22 14:28 Earnie Boyd
1999-02-28 23:02 ` Earnie Boyd
1999-02-19  7:00 setera
     [not found] ` < 8525671D.00525F37.00@D51MTA10.pok.ibm.com >
1999-02-19 17:21   ` Christopher Faylor
1999-02-22 13:40     ` Corinna Vinschen
1999-02-28 23:02       ` Corinna Vinschen
1999-02-28 23:02     ` Christopher Faylor
1999-02-28 23:02 ` setera
1999-02-16  5:27 Earnie Boyd
1999-02-28 23:02 ` Earnie Boyd
1999-02-16  4:24 Peter Kabal
1999-02-28 23:02 ` Peter Kabal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199902171807.NAA16764@envy.delorie.com \
    --to=dj@delorie.com \
    --cc=corinna.vinschen@cityweb.de \
    --cc=cygwin@sourceware.cygnus.com \
    --cc=paul-ml@is.lg.ua \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).