[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Uploading to Asimov
- Subject: Re: Uploading to Asimov
- From: Andy McFadden <fadden@fadden.com>
- Date: Wed, 10 Aug 2005 01:05:29 GMT
- Newsgroups: comp.sys.apple2, comp.emulators.apple2
- Organization: faddenInternet, Inc.
- References: <42f6947a$0$19657$636a15ce@news.free.fr> <EpTJe.8155$p%3.35450@typhoon.sonic.net> <dda4i2$qtj$1@merope.saaf.se> <ql4Ke.8225$p%3.35465@typhoon.sonic.net> <ddbaig$16ls$1@merope.saaf.se>
- Sender: Andy McFadden <fadden@adsl-209-204-141-120.sonic.net>
- User-agent: tin/1.4.7-20030322 ("Suggestions") (UNIX) (Linux/2.6.11-1.1369_FC4 (i686))
- Xref: g2news1.google.com comp.sys.apple2:4879 comp.emulators.apple2:234
In comp.sys.apple2 Paul Schlyter <pausch@saaf.se> wrote:
>>Perhaps, but in this case it seems inconvenient and excessive. If it
>>were added to the Zip format that would be a good thing, but if all you're
>>trying to detect is somebody using an ASCII transfer mode, a 16-bit CRC
>>is probably good enough.
>
> If all you want is to guard against binary files being transferred in
> ASCII mode, even CRC-16 is overkill. All you have to do then is to
> check the lengths of the original file and your downloaded copy: if
> the two lengths match, you have not transferred a binary file in ASCII
> mode (or if you did, you were lucky that it didn't change the contents
> of the binary file).
Not if you're transferring between UNIX and an Apple II.
Whatever the case, anything that lets me do an automated "is this file
okay" scan across an FTP archive is a Good Thing. If it gets in the
end user's face when something is wrong, that's a Better Thing.
This stuff is more common than you might think. I added an "EOL scanner"
tool to CiderPress to make it easier to diagnose bad archives and disk
images. You can get surprisingly far without falling over on converted
CR/LF.
--
Send mail to fadden@fadden.com (Andy McFadden) - http://www.fadden.com/
CD-Recordable FAQ - http://www.cdrfaq.org/
CiderPress Apple II archive utility for Windows - http://www.faddensoft.com/
Fight Internet Spam - http://spam.abuse.net/spam/ & http://spamcop.net/