suggestion: having just one set of base64 conversion functions

Robert P. J. Day rpjday at mindspring.com
Mon Apr 17 16:44:07 UTC 2006


On Sun, 16 Apr 2006, Rob Landley wrote:

> On Saturday 15 April 2006 1:56 pm, Robert P. J. Day wrote:
> >   at the moment, the code to do base 64 encoding lives in both
> > wget.c and uuencode.c, while decoding lives in both httpd.c and
> > uudecode.c. how about a single version of each routine in libbb?
>
> Some code has been submitted that I need to take a closer look at,
> and I'm separately cleaning that up a bit in my passwd.c rewrite.
>
> The problem is they don't do the _same_ base 64 encoding; the
> character sets they use differ.  And setting up/feeding in a table
> so you have generic universal encoding code is actually bigger.

yes, i did notice that it wasn't as simple as i first thought.

rday



More information about the busybox mailing list