From: "Henry Churchyard" Newsgroups: comp.os.msdos.djgpp Subject: Re: ANNOUNCE: DJGPP port of GNU Sed 3.02.80 uploaded Date: 4 Aug 2001 21:18:15 -0500 Organization: The University of Texas at Austin Lines: 30 Message-ID: <9kiad7$r0q@moe.cc.utexas.edu> References: <200107241624 DOT MAA22074 AT delorie DOT com> <9kf4fh$tn8 AT moe DOT cc DOT utexas DOT edu> <7458-Sat04Aug2001103737+0300-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: moe.cc.utexas.edu X-Trace: geraldo.cc.utexas.edu 996977848 81 128.83.42.2 (5 Aug 2001 02:17:28 GMT) X-Complaints-To: abuse AT cc DOT utexas DOT edu NNTP-Posting-Date: 5 Aug 2001 02:17:28 GMT X-Newsreader: trn 4.0-test69 (20 September 1998) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <7458-Sat04Aug2001103737+0300-eliz AT is DOT elta DOT co DOT il>, Eli Zaretskii wrote: >> From: "Henry Churchyard" >>> on platforms, like DOS/WIN95, that distinguish between >>> text and binary files. This will allow to process files that >>> contain embedded ^Z and lone ^M characters. >> DOS doesn't make any distinction whatsoever between binary and text >> files at the file-system level. [...CR vs. CR-LF problem] is >> caused by peculiarities of Unix/C, not peculiarities of DOS. > That's true, except that the special meaning of ^Z doesn't come from > the Unix text notion, but rather from CP/M. Yes, but ^Z actually also has no special status as far as the basic DOS filesystem or file open/read/write function calls (such as INT 21H AH=3DH, AH=3FH etc.) go -- pretty much the only places where the DOS operating system itself really treats ^Z specially are in some cases to mark the end of an input stream when reading in directly from a "character device" (not a disk file), and in the non-binary file-concatenation form of the COPY command as implemented by the COMMAND.COM interpreter. --%!PS 10 10 scale/M{rmoveto}def/R{rlineto}def 12 45 moveto 0 5 R 4 -1 M 5.5 0 R currentpoint 3 sub 3 90 0 arcn 0 -6 R 7.54 10.28 M 2.7067 -9.28 R -5.6333 2 setlinewidth 0 R 9.8867 8 M 7 0 R 0 -9 R -6 4 M 0 -4 R stroke showpage % Henry Churchyard churchh AT crossmyt DOT com http://www.crossmyt.com/hc/