Article View: news.software.nntp
Article #62895Re: NNTP and YENC
From: Frank Slootweg
Date: Tue, 07 Jan 2003 11:11
Date: Tue, 07 Jan 2003 11:11
73 lines
4231 bytes
4231 bytes
Bart Crane (aka Phil <PeepingUnder@thecovers.org> wrote): > Hello, > > I don't know what you mean by "this does not happen"... because it does!!! May I suggest that you *read* my article and that you *repeat* the tests I made? And may I suggest that you *check* your assumptions, instead of assuming that your assumption are true and still true. > Software that does not terminate on CTRL-Z is treating its input as binary, > not text. There are only a *few* *DOS* utilities which treat Ctrl-Z specially (see my response (below) for some which do *not*). *Windows* utilities which treat Ctrl-Z specially are probably even fewer. Example: I just copied a message.txt file (with a Ctrl-Z 'in the middle') with Windows Explorer and it happily copied the whole file! I especially gave it a .txt extension to give Windows Explorer a chance to treat it (specially) as text, but apparently it could not be bothered, and rightfully so. (In comparison, the (Windows 2000) "COPY /A" command still *does* terminate on Ctrl-Z, and so it should, because that has been *documented* behaviour since day one (of COPY).) So I am afraid that "Software that does not terminate on CTRL-Z is treating its input as binary, not text." is mostly in_your_imagination/ yours, not actual current code. > Thanks anyway!! > > Bart. [Rest of top-posted article:] > Frank Slootweg <franks@neth.hp.com> wrote in message > news:avc1qb$or1$1@support.neth.hp.com... >> 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:
<aveclo$at3$4@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!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.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> <avc1qb$or1$1@support.neth.hp.com> <OnqS9.161$wz1.153089@news.uswest.net>Show Full Headers
Complete Article Headers
Message-ID: <aveclo$at3$4@support.neth.hp.com>
Subject: Re: NNTP and YENC
Date: Tue, 07 Jan 2003 11:11:52 +0000
From: Frank Slootweg <franks@neth.hp.com>
References: <BXLR9.432835$pN3.48082@sccrnsc03> <20030104215829.905$Rh@newsreader.com> <j8TR9.568229$WL3.160487@rwcrnsc54> <avc1qb$or1$1@support.neth.hp.com> <OnqS9.161$wz1.153089@news.uswest.net>
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!logbridge.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!sdd.hp.com!news.cup.hp.com!support.neth.hp.com!not-for-mail
Newsgroups: news.software.nntp
Organization: NOYB
Lines: 72
NNTP-Posting-Host: support.neth.hp.com
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (HP-UX/B.10.20 (9000/800))