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