ssegan@dasys1.UUCP (02/22/87)
Okay. A while ago I posted a supposedly 'user-friendly' version of UUDECODE. Wrong! It had some very unfriendly bugs. So below is the fixed,triple-tested version of UUDECODE 0.6F that has _also_ been renumbered so that the lines count by 10! Sheesh! On a different note, what do the 'protection mode' and 'outbytes/line' parameters do in UUENCODE.COM? I know nothing about UNIX and would like to find out how to use these. -------------Below lies the true UUDECODE 0.6F!--------------------------- begin 700 uudecode.bas M 7\!@ %@ B@2/A+-555$04323T)51D1)S4]"54:D0EE41=-)0E5&I$]&a M24Q%I$E&24Q%I$&D555$14-/1$6D555%3D-/1$6D555%043224)5QD]"5<95a M541$2<W)S%!/2T%$TDU!6$%$TE!21U1/T-A,3[%(2;%,3[)(2;).15+24%!%a M2ZA:6%79 $ @ ( # 0 a M " !0 ( & @ < " " ( ) @ H a M "P , T #@ / a M ! $0 2 !, % 5 a M !8 %P 8 !D ! &@ ;a M !"0@!-;V1I9FEE9"!F;W(@*$8I<FEE;F1L:6YE<W,@8GD@4V%Sa M8VAA(%-E9V%N(&]R('-S96=A;B%D87-Y<S&;"@ _#0H.0' %#\ :G5Ma M<"!A<F]U;F0@8W)I=&EC86P@<W1U9F8@=&\@<W1A<G0@=7 @<')O9W)A;2Z;a M% ,##: +3\Z@2P6'@ 7%P> (@X ;#D$#@ !8H #()!X A@ALHa M* \:1&EM96YS:6]N(&5R<F]R(&%T(&QI;F4@,C 4,@H.0000 %C( &1$@a M' Y @ 5@Q44&3:$+80E@!8\ !H0 AP.0 $ $H44&@H.0" a M%D8 2DH 5&AI<R!T:&EN9R!I<R!A(&YI9VAT;6%R92!T;R!R97!R;V=R86TAa M($-A;B=T(&%N>6]N92!N=6UB97(@8GD@,3 G<S^;4 @( !(02$@4T\@22!.a M54U"15)%1"!"62 Q,"=3(9M: )<-*PY @ 4'Q\.00<0 $@X a M 4,1\.00=2 $@Y 0 4/"@<#D & !1:*!P.0 8 %0\0a M(" @=75D96-O9&4@L*ZVQA1X*!P.0 8 %0\0("!"62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Q,#4L-"PQ,S.;W@,:&@$R,#0L,30T+#(L,C,Pa M+#(P-2PR-)OH QL; 3$V-2PR,#8L,3 U+#,L,3,S+#(P-IOR QT= 3$T-"PQa M-C8L,C,P+#(P-RPQ-S8L,38RF_P#%A8!.38L,C(T+#(L,C(U+#(L,)L @!86a 2&0\.1#I5541%0T]$12Y"05,6a end -- Sascha Segan {allegra,philabs,cmcl2}!phri\ Big Electric Cat Public Unix {bellcore,harpo,cmcl2}!cucard!dasys1!ssegan New York, NY, USA {philabs}!tg/
bammi@cwruecmp.UUCP (02/25/87)
the protection mode in a uuencoded file is the read write protection mode for Unix uudecode to use for the uudecoded file... (i.e. it sets whether you, your group, and others (everybody else) on a Unix system can read/write/xecute the file). It is included in uuencode.com mainly for compatibility. (The default that I use, 700, means rwx permission for the file owner, no permission for anybody else... I didn't mean to be anti-social, but this seemed to be the safest default to use. If you uudecode such a file on a unix system and want to change its protection mode, see 'man chmod' which tells you how to do it.) the 'outbytes/line' parameter is in there because it was not clear to me when I wrote uuencode how flexible the length of a uuencoded line is... from what i could tell (and john sanger sent to me) it was typically 45 bytes/line encoded to produce 60 characters plus the leading 'M' (typically) and the trailing 'a' (to protect trailing spaces)... the way i wrote uuencode it seemed that the sensible thing to do was to limit the 'outbytes/line' to be a multiple of 3, so that groups of 3 bytes encoded into 4 characters were always on a single line (i.e., didn't get split across line boundaries). i don't know if standard uuencode is limited this way, but i did find a good use for leaving this parameter in... (particularly while debugging it)... by using an 'outbytes/line' smaller than 45 (but still a multiple of 3) you can create uuencoded files that have less than 40 characters on a line, and hence you can display them on your 40 column screen without the lines annoyingly breaking over at the end of the screen (e.g., outbytes = 27 gives 36 + 2 = 38 characters/uuencoded line...) this makes it more aesthetic if you have some need to edit the uuencode (.uue) file on your 8-bit... which brings me to: the most recent version of uuencode.com that i posted was 2/6/87. it had all of the fixes that i have know about (particularly related to handling the last line, and putting a blank line before the 'end' line). the only fix i have been made aware of since then is that there are three trailing spaces on the 'end ' line that unix uudecode complains about... i don't know if this leads to a misdecoded file on unix systems, or not, but i am pretty sure that john sanger's uudecode.bas (and my uudecode.com) handle this ok... (come on, unix uudecode! i put the blanks in either by accident, or to distinctly mark 'end'...) i have fixed this, but haven't posted the fixed version, because 1) maybe it really isn't necessary (you can use an editor to remove those trailing blanks before uudecoding, if you need to), and 2) i am pretty sure that john and my uudecode programs handle this case ok. if this is more than a minor hassle to you, send me mail (DON'T REPLY TO THIS MESSAGE!!! send me mail at the address below, since I am using a friend's account right now.), and if there is enough interest, I will post the most recent version of uuencode.com. I will try to remember to post vt10^2 and the docs soon since there is interest. bye :-) brad banko cleveburg, ohio ...!decvax!cwruecmp!ncoast!btb -- usenet: {decvax|cbatt|cbosgd}!cwruecmp!bammi jwahar r. bammi csnet: bammi@case arpa: bammi%case@csnet-relay compuServe: 71515,155