[comp.sys.amiga] UUdecode

bach%USCN.BITNET@cunyvm.cuny.edu (BitNet Users Of Southern Tech) (10/02/88)

Would someone please send me the sources to the latest versions of
UUENCODE and UUDECODE.

                                        Thanks,

                                        Shawn Hayes

bach%USCN.BITNET@UDEL.EDU (10/04/88)

Received: from CUNYVM by CUNYVM.BITNET (Mailer X2.00) with BSMTP id 5318; Sun,
 02 Oct 88 00:58:33 EDT
Received: from UDEL.EDU by CUNYVM.CUNY.EDU (IBM VM SMTP R1.1) with TCP; Sun, 02
 Oct 88 00:58:32 EDT
Received: from Louie.UDEL.EDU by Louie.udel.EDU id aa04404; 1 Oct 88 23:39 EDT
Received: from USENET by Louie.UDEL.EDU id aa04393; 1 Oct 88 23:37 EDT
From: BitNet Users Of Southern Tech <bach%USCN.BITNET@cunyvm.cuny.edu>
Subject: UUDECODE
Message-ID: <4362@louie.udel.EDU>
Date: 2 Oct 88 03:36:52 GMT
To:       amiga-relay@UDEL.EDU
Sender:   amiga-relay-request@UDEL.EDU

Would someone please send me the sources to the latest versions of
UUENCODE and UUDECODE.

                                        Thanks,

                                        Shawn Hayes

page%swap@Sun.COM (Bob Page) (07/13/89)

chas@gtss.gatech.edu (Charles Cleveland) wrote:
>(uuencode is not so good because his BitNet mail goes through an IBM which
>has a tendency to swap certain characters and he has to fix these up
>manually).

The latest version (latest since Dec '87!) of uudecode will detect
BITNET rot and adjust for it.  Have Willy use this version; it prevents
everyone from using yet another encoding scheme.  We have enough already...

The uuencode scheme also adds checksums and doesn't put spaces in the file;
even if you don't care about BITNET rot you still want these.

Get files unix/uuxcode.1 and uuxcode.uu1 from your favorite Amiga archive.

..bob

jones@eglin.af.mil (Calvin Jones, III) (02/03/90)

"Robin D. Wilson/1000000" <robin@sabre.uucp> writes:

> I have seen several references to the "uuencode/uudecode" programs, where do
> I get them(it)?  Is the one on the fish disks (Fish #38) the one I need, or
> is there a new/better/more-featured/replacement somewhere else?

> Is uudecode what I need to decode file that begin:

> begin 644 program.zoo
> M6D]/(#(N,#`@07)C:&EV92X:``#<I\3]*@```-;___\"``$````````!W*?$.
> M_0(!C@@``'$````U%%-2G=NL"P``'0@```$```````````!&:6YD`'-E96LNA

There's always the problem of getting the first few tools set up the 
shop.  Here's the straight ASCII for a simple BASIC program I wrote so I
could UUDECODE files on a clone.  The code is pretty much straight BASIC
and should run on just about any system (it sure was hard to go back to
using line numbers).  The program will attempt to open a file named 
"infile.uue" and will create the output file based on what id found in 
the "begin" line.
 
It's not fancy, nor effecient, but it can get you started.
 
------8<----- Cut here.  Ask Mommie for help if you can't use scissors. 
10 OPEN "infile.uue" FOR INPUT AS #1
12 LINE INPUT#1, X$
14 IF LEFT$(X$,6) <>"begin " THEN 12
16 N = INSTR(7,X$," ")+1
18 OF$ = MID$(X$,N)
20 OPEN OF$ FOR OUTPUT AS #2
25 PRINT "Opening file ";OF$;" for output..."
30 DIM X(255),C(255)
40 C1 = 256
50 C2 = C1 * C1
60 C3 = C2 * C1
100 LINE INPUT#1,X$
110 L = LEN(X$)
111 IF L < 2 THEN 900
115 IF LEFT$(X$,1) = " " THEN 900
120 FOR I = 1 TO L
130 X = ASC(MID$(X$,I,1))-32
140 IF X = 64 THEN X = 0
150 X(I) = X
160 NEXT I
170 LL = X(1)
180 L2 = FIX((LL+2)/3)*4
190 C$ = ""
195 IF LL = 0 THEN 900
200 FOR I = 0 TO L2-4 STEP 4
210 T# = X(I+5)+64*(X(I+4)+64*(X(I+3)+64*X(I+2)))
220 T2# = FIX(T#/C2)
230 A$ = CHR$(T2#)
240 T# = T# - C2*T2#
250 T2# = FIX(T#/C1)
260 B$ = CHR$(T2#)
270 T# = T# - C1*T2#
280 C$ = C$ + A$ + B$ +CHR$(T#)
290 NEXT I
300 PRINT#2,C$;
310 LN = LN + 1
320 PRINT LN
400 GOTO 100
900 CLOSE 2
910 CLOSE 1
999 STOP
------8<----- Cut here.  Ask Mommie for help if you can't use scissors. 
Hope this helps someone out there.
 
   --- Cal
   //  Cal Jones - Internet:  <Jones@UV4.Eglin.AF.Mil>
 \X/               BBS:  904-243-6219  1200-9600HST  340Meg, all Amiga
                         Single Tasking?    *JUST SAY NO!!!*

robin@sabre.uucp (Robin D. Wilson/1000000) (02/06/90)

In article <9921@baldrick.udel.EDU> jones@eglin.af.mil (Calvin Jones, III) writes:
>"Robin D. Wilson/1000000" <robin@sabre.uucp> writes:
>> Is uudecode what I need to decode file that begin:
>Hope this helps someone out there.
>   --- Cal

I appreciate the help.  I now have the "c" version of this (from the Fish disk)
and it works fine.  Thanks to all who sent me responses.  

PLEASE don't post anymore of these to the net.  If you want to send me mail,
use the return address in the .sig file.


+-----------------------------------------------------------------------------+
|The views expressed herein, are the sole responsibility of the typist at hand|
+-----------------------------------------------------------------------------+
|USNail:                               UUCP:                                  |
|2323 Wells Branch Pkwy., #G107        cs.utexas.edu!romp!ibmchs!auschs\      |
|Austin, TX  78728                     !sabre.austin.ibm.com!robin            |
|Home: (512)251-6889                          ^^^^^^^^^^^^^^<-MUST BE INCLUDED|
+-----------------------------------------------------------------------------+

lab@spader.UUCP (Lars Berntzon) (03/11/90)

Hello, can any one please post me a copy of an uudecode program ?

     Thanks in advance!

Lars Berntzon				uunet!mcsun!sunic!spader!lab
Technologic
(46) 08 750 74 50

phorgan@cup.portal.com (Patrick John Horgan) (03/12/90)

Lars...I tried to mail the source to you, but my mailer doesn't 
know your site.  If noone else helps, then try sending me an
alternate address for you:)
Patrick Horgan                        phorgan@cup.portal.com

MMAS012%ECNCDC.BITNET@uicvm.uic.edu (05/04/90)

Alright, I've gotten a lot of responses from you people, and now I
know exactly what I need.  I need the SOURCE to UUDECODE in
AmigaBASIC.  I've gotten the source in C, but for reasons to
complicated to explain here, my Lattice C compiler is 400
miles away.  Inciudentally, I will be leaving school for the
semester next week, and will NOT have access to this listing,
so time is an important factor.  Thanks for all the help...
   Scotty AJ
   MMAS012@ECNCDC


"I'm outta here like shit out of a butt."
                                  - Dave Park

jma@beach.cis.ufl.edu (John 'Vlad' Adams) (05/06/90)

In article <18468@snow-white.udel.EDU> MMAS012%ECNCDC.BITNET@uicvm.uic.edu writes:
>Alright, I've gotten a lot of responses from you people, and now I
>know exactly what I need.  I need the SOURCE to UUDECODE in
>AmigaBASIC.  

No!!!!!!  The BASIC version is slower than sap-bleeding a tree.
Just get the executables out of the UUCP archive off Fred Fish disks!
(Or via anon ftp to Dillon's directory at Berkeley!)
--
John  M.  Adams    --*--    Professional Student on the six-year plan!      ///
Internet:  jma@beach.cis.ufl.edu   -or-   vladimir@maple.circa.ufl.edu     ///
"Houston, we have a negative on that orbit trajectory." Calvin & Hobbs  \\V//
Cosysop of BBS:42; Amiga BBS FIDOnet 1:3612/42. 904-438-4803 (Florida)   \X/

stelmack@screamer.csee.usf.edu (Gregory M. Stelmack) (09/29/90)

I'm looking for uudecode for the Amiga, so I can download comp.sources.amiga
stuff and unshar & uudecode on the Amiga. I have Unshar, but the uucode
archive on abcfd20 looks corrupt to me (couldn't find anything in it). If
anybody has a working copy they'd be willing to share, please let me know.

Thanks,
-- Greg Stelmack
-- Email: stelmack@sol.csee.usf.edu
-- USmail: USF Box 1510, Tampa, FL 33620-1510
-- Amiga: the only way to compute!