From: dbe@wgn.net ($Bill Luebkert)
Subject: Re: uudecode?
21 Jan 1999 13:59:47 -0800
Message-ID: <36A703D8.D8953182.cygnus.gnu-win32@wgn.net>
References: <95DE24D1FCFED0118B910060940A334006C31F@mailhub.adacorp.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Mark Newnham <mark.n@usa.net>
Cc: "'John Cooper'" <John.Cooper@citrix.com>, gnu-win32@cygnus.com

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:dbe@wgn.net   V3: http://come.to/dbe
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
