Subject: Re: uudecode?
From: [email-masked] ($Bill Luebkert)

21 Jan 1999 13:59:47 -0800
Message-ID: <[email-masked]>
References: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Mark Newnham <[email-masked]>
Cc: "'John Cooper'" <[email-masked]>, [email-masked]

Mark Newnham wrote:
> 
> The problem appears to be with the uuencode portion, because a file
> encoded on a different system will uudecode correctly with the source
> supplied.
> 
> If you compare a file encoded with the source code, against the same
> file encoded on a Unix system, although the files are the same size,
> each line on the Unix encoded file starts with a 'M' (or possibly the
> 'M' is after the newline on the previous. This does not appear with the
> source code version.

This is due to a bug on this line:
   outbuf[idx++] = ENC(ch);		# ch is not active at this time
which I changed to:
   outbuf[idx++] = ENC(n);		# n is the number of chars read

I'll send my version to John.

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.wgn.net/~dbe/
  / ) /--<  o // //      Mailto:[email-masked]   V3: http://come.to/dbe
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".