Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!gatech!udel!rochester!steinmetz!philabs!micomvax!musocs!mcgill-vision!mouse From: mouse@mcgill-vision.UUCP Newsgroups: comp.mail.uucp,comp.protocols.misc,comp.sources.d Subject: Re: uuencode enhancements Message-ID: <806@mcgill-vision.UUCP> Date: Mon, 8-Jun-87 22:22:37 EDT Article-I.D.: mcgill-v.806 Posted: Mon Jun 8 22:22:37 1987 Date-Received: Sat, 13-Jun-87 11:22:25 EDT References: <7702@orchid.UUCP> <1046@viper.Lynx.MN.ORG> <886@lll-lcc.aRpA> <1999@dg_rtp.UUCP> Distribution: comp Organization: McGill University, Montreal Lines: 20 Xref: utgpu comp.mail.uucp:545 comp.protocols.misc:49 comp.sources.d:766 In article <1999@dg_rtp.UUCP>, meissner@dg_rtp.UUCP (Michael Meissner) writes: > In article <886@lll-lcc.aRpA> langdon@lll-lcc.aRpA (Bruce Langdon) writes: >> [recommends using atob/btoa rather than uuencode/uudecode] > One thing to note about atob/btoa is that will append upto 3 (or 4?) > null bytes upon conversion from printable chars to binary. You must have a broken atob (or btoa, or both). % echo -n x | btoa | atob | cat -v x% echo -n xx | btoa | atob | cat -v xx% echo -n xxx | btoa | atob | cat -v xxx% echo -n xxxx | btoa | atob | cat -v xxxx% No nulls anywhere. der Mouse (mouse@mcgill-vision.uucp)