delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/21/13:59:47

From: dbe AT wgn DOT net ($Bill Luebkert)
Subject: Re: uudecode?
21 Jan 1999 13:59:47 -0800 :
Message-ID: <36A703D8.D8953182.cygnus.gnu-win32@wgn.net>
References: <95DE24D1FCFED0118B910060940A334006C31F AT mailhub DOT adacorp DOT com>
Mime-Version: 1.0
To: Mark Newnham <mark DOT n AT usa DOT net>
Cc: "'John Cooper'" <John DOT Cooper AT citrix DOT com>, gnu-win32 AT cygnus DOT 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 AT wgn DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019