home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20940 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  2.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!geraldo.cc.utexas.edu!gargravarr.cc.utexas.edu!chrisj
  2. From: Chris Johnson <chrisj@emx.cc.utexas.edu>
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Why does BinHex exist?
  5. Date: 7 Jan 1993 22:57:24 GMT
  6. Organization: University of Texas at Austin Computation Center
  7. Lines: 39
  8. Distribution: world
  9. Message-ID: <1iicgkINNrij@geraldo.cc.utexas.edu>
  10. References: <1993Jan7.210159.26183@netcom.com>
  11. NNTP-Posting-Host: gargravarr.cc.utexas.edu
  12. X-UserAgent: Nuntius v1.1.1d16
  13. X-XXMessage-ID: <A7720C9F2C01BE1F@gargravarr.cc.utexas.edu>
  14. X-XXDate: Thu, 7 Jan 93 22:36:47 GMT
  15.  
  16.  
  17. In article <1993Jan7.215843.3868@reed.edu> BoBolicious, bowman@reed.edu
  18. writes:
  19. >Mail on the internet, at least in the u.s., can only handle 7-bit bytes.
  20. >Binhex converts 8 bit bytes to 7 bit bytes.  Thus it makes the files 
  21. >slightly larger...in principle, 1/8 bigger.
  22.  
  23. Quibbles: BinHex 4.0 actually encodes in a 6 bit format, where all the 
  24. characters are relatively standard and should map into alternate 
  25. character sets (like EBCDIC) and back without error. The characters 
  26. used by BinHex to represent its 6 bit bytes are as follows (in order):
  27.  
  28.     !"#$%&'()*+,-012345689@ABCDEFGHIJKLMNPQRSTUVXYZ[`abcdefhijklmpqr
  29.  
  30. So, in principle, we're looking at a 2/8 increase in size. However, 
  31. BinHex includes a run-length encoding scheme which can help trim a bit
  32. off the ultimate size of encoded files. Unfortunately, most BinHex
  33. encoders don't appear to support this feature. (I noticed this when I
  34. implemented one that *did* a while back.) Note that the run-length 
  35. encoding is most useful when the file being encoded is NOT already
  36. compressed. It doesn't help much (but it does help a little) with most
  37. compressed archive files.
  38.  
  39. As to comments made by others that BinHex is a pain to deal with, two
  40. points: (1) depending on what you're trying to do, binary is unusable,
  41. so there are time when you just have to have something like BinHex, 
  42. and (2) I'd suggest getting a communications program that decodes 
  43. BinHex files on-the-fly during the download. Use one of those, and 
  44. you'll never have to see another BinHex file. Most ftp clients for the 
  45. Mac (XferIt, Fetch, etc.) provide this on-the-fly decoding.
  46.  
  47.  
  48. Chris Johnson
  49.  
  50. Internet:   chrisj@emx.cc.utexas.edu
  51. UUCP:       {husc6|uunet}!cs.utexas.edu!ut-emx!chrisj
  52. BITNET:     chrisj@utxvm.bitnet
  53. CompuServe: >INTERNET:chrisj@emx.cc.utexas.edu
  54. AppleLink:  chrisj@emx.cc.utexas.edu@internet#
  55.