🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #18339

Re: TRN and incomplete binary extraction

#18339
From: Tony Eva
Date: Tue, 30 Jan 1996 00:00
49 lines
2442 bytes
bradym@mahler.cs.arizona.edu (Brady Montz) wrote:

> In article <4efl3d$jet@rodelo.cyberverse.com>,
> Nick <gruel@hondo.cyberverse.com> wrote:
> > ...
> >The problem appears to be that some form of uuencoder that various people 
> >are using leaves the last line of uuencoded data without the 'M' in 
> >column 1.  Frex:
> >
> >  MC[?B*0K_`+;H*9A_Z\_J*'HF\ED`K8,Q+LSMZZ_6E#&*%`AV=Q/IW>F__P`O
> >  M_P`_K657]$?^PIH4GDTC%"A#,UP'[O0E13`$6`T/W'VH/#_T/>U&NV%R'UH]
> >  $#P__V0 0 0
> > 
> >  end
> >  END -- Cut Here -- cut here
>
> ...
> 
> The problem with this file may be that it doesn't have the required line of
> length 0 at the end of the text. If you look at what the real uuencode will
> produce, it looks like:
> 
> M`%]?9G!U7V-O;G1R;VP`7W-T87)T`%]?7V-R=%]D=6UM>5]?`%]?8G-S7W-T
> M87)T`&UA:6X`7V9I;FD`871E>&ET`%]E9&%T80!?1TQ/0D%,7T]&1E-%5%]4
> ;04),15\`7V5N9`!E>&ET`%]?<V5T9G!U8W<`
> `
> end

The last line doesn't have to have a length character of '`'.  The
requirement is that (length character - ' ' & 0x3F) == 0.  This
requirement is satisfied by the space character as well.

To quote from the HP-UX uuencode(4) man page:

"The body is terminated by a line with a count of zero.  This line
consists of one ASCII space."

Most uuencoders use a back quote (`) character instead of a space in
the last line, presumably because many mail programs will strip off
trailing spaces from a line and therefore reduce the last line to just
a null line if a space was used.  However, it is valid to have a last
line consisting of just a single space and trn's uudecoder should
treat it correctly as the end of file.

-- 
Tony Eva       | BNR Europe Ltd, Maidenhead, Berkshire, SL6 4AG, UK
tonyeva@bnr.ca |             My opinions only, not BNR's

Technical Details
Message-ID: <4ekpno$i4o@bmdhh222.bnr.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <4efl3d$jet@rodelo.cyberverse.com> <4eg3hh$j74@optima.cs.arizona.edu>

Show Full Headers
Complete Article Headers
Message-ID: <4ekpno$i4o@bmdhh222.bnr.ca>
Subject: Re: TRN and incomplete binary extraction
Date: Tue, 30 Jan 1996 00:00:00 +0000
From: tonyeva@bnr.ca (Tony Eva)
References: <4efl3d$jet@rodelo.cyberverse.com> <4eg3hh$j74@optima.cs.arizona.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 137358305
Organization: BNR Europe Ltd, Maidenhead, UK
Reply-to: tonyeva@bnr.ca
Newsgroups: news.software.readers
Originator: tonyeva@bmdhh545