delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/19/15:20:52

Subject: Re: O_TEXT/O_BINARY grief
To: leisner AT sdsp DOT mc DOT xerox DOT com (Marty Leisner)
Date: Sun, 19 Jun 1994 13:37:28 -0600 (CDT)
Cc: eliz AT is DOT elta DOT co DOT il, djgpp AT sun DOT soe DOT clarkson DOT edu
From: mcastle AT umr DOT edu (Mike Castle)

Amazingly enough Marty Leisner said:
> 
> My contention is I have never seen a problem treating everything as binary.
> 
> If you have code which explicitly tests for CR-LF, then you have trouble...

Unfortunately, most ms-dos programs DO check this (for example,
try TYPEing a text file with only LFs in it and see what
happens).  By not caring you make your job easier, but you also
lose the ability to freely move files tween your programs and
many other dos based programs.

Course, the other big win is control-z as EOF marker *sigh* 

-- 
Mike Castle .-=NEXUS=-.  Life is like a clock:  You can work constantly
  mcastle AT cs DOT umr DOT edu     and be right all the time, or not work at all
   mcastle AT umr DOT edu       and be right at least twice a day.  -- mrc
    We are all of us living in the shadow of Manhattan.  -- Watchmen

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019