home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18215 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.9 KB

  1. Path: sparky!uunet!ornl!utkcs2!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!mouse
  2. From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: A better mousetrap
  5. Message-ID: <1992Dec11.194703.23750@thunder.mcrcim.mcgill.edu>
  6. Date: 11 Dec 92 19:47:03 GMT
  7. References: <18287@mindlink.bc.ca> <alien.01tq@acheron.amigans.gen.nz>
  8. Organization: McGill Research Centre for Intelligent Machines
  9. Lines: 34
  10.  
  11. In article <alien.01tq@acheron.amigans.gen.nz>, alien@acheron.amigans.gen.nz (Ross Smith) writes:
  12. > In article <18287@mindlink.bc.ca> Marc_North@mindlink.bc.ca (Marc North) writes:
  13.  
  14. >> [...uuencode...less expansion ratio...]
  15.  
  16. >    Standard uuencode (?) : log(256)/log(69) = 1.3096
  17.  
  18. Standard uuencode expands by 3:4, plus M characters and line breaks;
  19. fiddling with logarithms is a meaningless exercise when the encoding
  20. method is well-defined.  It's fewer than 69, though, since any system
  21. that can't take lower case probably can't take a bunch of other
  22. characters too; uuencode is careful to limit itself to a relatively
  23. portable set of characters.  (For example, all the characters uuencode
  24. uses are the same under ASCII->EBCDIC->ASCII mapping with any known
  25. version of the mapping for each step.)
  26.  
  27. >    Limit using ASCII : log(256)/log(95) = 1.2177
  28.  
  29. I'm glad someone finally did this little bit of arithmetic.
  30.  
  31. > (BTW, does anyone know *why* uuencode uses only uppercase letters?
  32. > Surely no mail/news system is so braindead that it mangles case?)
  33.  
  34. Can you say "card images"?  Gooooood!  (Notice that uuencode format is
  35. also tolerant of having every line padded with spaces to 80 columns.)
  36.  
  37. Few systems will mangle case nowadays.  But they exist, and back when
  38. uuencode was first written, they were (apparently) common enough that
  39. they had to be kludged around.
  40.  
  41.                     der Mouse
  42.  
  43.                 mouse@larry.mcrcim.mcgill.edu
  44.