🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bbs.waffle
Article #3483

Re: The woes of ^Z

#3483
From: Leonard Erickson
Date: Tue, 12 Jan 1993 01:10
30 lines
1914 bytes
djk@boombox.apana.org.au (David Keegel) writes:

>Strangely enough, on Unix (where C was developed), this text conversion
>is a no-op; like converting to network byte order on a Sun.

>So the question is whether the file in question is a text file or a
>binary file.  If it is a text file, it should obey local conventions.
>In the case of MS-DOS, it should have \015\012 (\r\n) separated lines,
>and a \032 (^Z) character denoting EOF, which is of course stripped.

>I think a news item is (should be) a text file.

>Perhaps we should be complaining about Waffle not translating the ^Z
>into something innoculous when it *writes* the file (when \n -> \r\n
>is done) rather than when it *reads* the file.

>But then tell me, what is the MS-DOS convention for quoting a ^Z?
>Answer: none.  If there was one, the compiler writers could implement
>it as an extra translation for text files (eg: when writing text
>^Z --> ???; like \n --> \r\n).  Then the applications wouldn't need
>to worry about this rubbish.

Or just pick up a copy of "Strip", and have it *remove* the ^Z characters
from the files. 

-- 
Leonard Erickson		      leonard@qiclab.scn.rain.com
CIS: [70465,203]			 70465.203@compuserve.com
FIDO:   1:105/51	 Leonard.Erickson@f51.n105.z1.fidonet.org
(The CIS & Fido addresses are preferred)
Technical Details
Message-ID: <1993Jan12.011054.24398@qiclab.scn.rain.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!olivea!charnel!psgrain!qiclab!leonard
References: <3Ng0VB3w165w@cybrspc.UUCP> <22Dec92043311@miracle.com> <1993Jan4.022937.3932@smoke.marlboro.vt.us> <dJiTrAYEBh107h@boombox.apana.org.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!olivea!charnel!psgrain!qiclab!leonard
From: leonard@qiclab.scn.rain.com (Leonard Erickson)
Newsgroups: comp.bbs.waffle
Subject: Re: The woes of ^Z
Message-ID: <1993Jan12.011054.24398@qiclab.scn.rain.com>
Date: 12 Jan 93 01:10:54 GMT
References: <3Ng0VB3w165w@cybrspc.UUCP> <22Dec92043311@miracle.com> <1993Jan4.022937.3932@smoke.marlboro.vt.us> <dJiTrAYEBh107h@boombox.apana.org.au>
Reply-To: Leonard.Erickson@f51.n105.z1.fidonet.org
Organization: SCN Research/Qic Laboratories of Tigard, Oregon.
Lines: 30