Article View: news.software.nntp
Article #62842Re: NNTP and YENC
From: Frank Slootweg
Date: Mon, 06 Jan 2003 13:54
Date: Mon, 06 Jan 2003 13:54
39 lines
2540 bytes
2540 bytes
Bart Crane <svcrane@attbi.com> wrote: [much deleted] > In DOS/Windows, CR LF is mapped to LF, and SUB is interpreted > as End Of File. To maintain compatibility with DOS/Windows, only > SUB need be escaped. Well, I hate to break it to you but in "DOS/Windows", SUB (Ctrl-Z) is *NOT* interpreted as End Of File. Perhaps in *your* "DOS" or *your* "Windows" or *your* broken sed/grep, but not in "DOS/Windows" *in general*! As others have posted, this (Ctrl-Z) 'problem' was just caused by a bad design choice in early DOS, but since that time, people have solved those problem, also *on* (not neccessarily *in*) DOS. Case in point: I just copied a file with a Ctrl-Z 'in the middle' from UNIX to Windows (2000). I used stock Windows 'rcp' (both with "-a" and "-b", made no difference), and stock Windows 'more' displayed the file just fine, and stock 'find' (the *'DOS'* command, not the UNIX one) could search past the Ctrl-Z just fine. So what we have here is a set of *Microsoft* (for crying out loud) *'DOS'/Windows* programs which (*rightfully*) ignore/accept Ctrl-Z in *text* files. And please no remarks about sed/grep on *DOS/Windows* 'having' to terminate on Ctrl-Z. sed/grep are *UNIX*, or POSIX if you prefer, standard utilities. They have to handle UNIX/POSIX text files. In UNIX /POSIX text files, Ctrl-Z has no special meaning. Period. For example Cygwin (set of UNIX utilities for Windows) grep also could search past the Ctrl-Z just fine. So if *your* DOS/Windows sed/grep can not handle Ctrl-Z in text files, then, as the others have said many times, they are *broken* and *they* should be fixed, not something else. [much deleted]
Technical Details
Message-ID:
<avc1qb$or1$1@support.neth.hp.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.isc.org!agilent.com!sdd.hp.com!news.cup.hp.com!support.neth.hp.com!not-for-mailReferences:
<BXLR9.432835$pN3.48082@sccrnsc03> <20030104215829.905$Rh@newsreader.com> <j8TR9.568229$WL3.160487@rwcrnsc54>Show Full Headers
Complete Article Headers
Message-ID: <avc1qb$or1$1@support.neth.hp.com>
Subject: Re: NNTP and YENC
Date: Mon, 06 Jan 2003 13:54:19 +0000
From: Frank Slootweg <franks@neth.hp.com>
References: <BXLR9.432835$pN3.48082@sccrnsc03> <20030104215829.905$Rh@newsreader.com> <j8TR9.568229$WL3.160487@rwcrnsc54>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.isc.org!agilent.com!sdd.hp.com!news.cup.hp.com!support.neth.hp.com!not-for-mail
Newsgroups: news.software.nntp
Organization: NOYB
Lines: 38
NNTP-Posting-Host: support.neth.hp.com
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (HP-UX/B.10.20 (9000/800))