Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!spike From: spike@bu-cs.BU.EDU (Spike) Newsgroups: comp.sys.apple Subject: Re: uuencode/uudecode anyone? (was: GS Programs. . . Please!) Message-ID: <22473@bu-cs.BU.EDU> Date: 7 May 88 17:19:22 GMT References: <9165@reed.UUCP> <537@n8emr.UUCP> <9621@agate.BERKELEY.EDU> <790@trwcsed.trwrb.UUCP> Reply-To: spike@bu-it.bu.edu (Joe Ilacqua) Followup-To: comp.sys.apple Organization: Boston University Distributed Systems Group Lines: 45 In article <790@trwcsed.trwrb.UUCP> arenberg@trwcsed.UUCP (Jeff Arenberg) writes:simtel-20.arpa ( Files are in pd1: ) and I was playing >around trying to get them running under APW C. The code is very short and and presumably the Basic interface would take a little work. Uuencode is quit simple: First it puts the line 'Begin mode filename' mode is permissions of the file, filename is just that. This allows uudecode to skip over any cruft such as mail headers. It takes 3 8 bit integers and outputs 4 chars given AAAAAAAA output 00AAAAAA BBBBBBBB 00AABBBB CCCCCCCC 00BBBBCC 00CCCCCC The ASCII value of SPACE is then added to the number to make it a printable char. The very first char on each line is the number of uuencoded chars on that line plus the value of SPACE. This number must be <= 45 (45 uuencode ints will give 60 printable chars). Most commonly the value is 'M' ('M' - ' ' = 77 - 32 = 45). At the end the should have line starting with a SPACE (for 0 chars) and the a line that is 'end'. had any problems with Executioner. If anyone has any real good Spike "You'll laugh, you'll cry, you'll kiss 3 bucks goodbye." UUCP: ...!harvard!bu-cs!bu-it!spike INTERNET: spike@bu-it.bu.edu CSNET: spike%bu-it@bu-cs BITNET: engemnc@bostonu "VPS sucks"