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

  1. Xref: sparky comp.sys.mac:594 comp.sys.mac.comm:12906 comp.sys.mac.misc:21685
  2. Newsgroups: comp.sys.mac,comp.sys.mac.comm,comp.sys.mac.misc
  3. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!oakhill!shantanu
  4. From: shantanu@oakhill.sps.mot.com (Shantanu Ganguly)
  5. Subject: Re: Could someone kindly answer a newbie's question?
  6. Message-ID: <1993Jan12.201219.5992@oakhill.sps.mot.com>
  7. Organization: Motorola Inc., Austin Tx.
  8. References: <1993Jan11.203957.29358@samba.oit.unc.edu> <1ispmsINNtuc@ub.d.umn.edu>
  9. Distribution: usa
  10. Date: Tue, 12 Jan 1993 20:12:19 GMT
  11. Lines: 44
  12.  
  13. In article <1ispmsINNtuc@ub.d.umn.edu> serickso@ub.d.umn.edu (Scott Erickson) writes:
  14. >
  15. >Previously David.White@launchpad.unc.edu (David White) wrote: 
  16.  
  17. [deleted question]
  18.  
  19. >>
  20. >>- What's the deal with StuffIt and Compact Pro?  Are they just 2 rival,
  21. >>incompatible file compressing programs?  Will either one decompress the other?
  22. >Stuffit does not decompress Compact Pro.  I do not know if Compact Pro
  23. >decompresses Stuffit files.
  24. >
  25. >>- What's the deal with BinHex?  Why are most uploaded programs in .HQX
  26. >>format if it makes the file BIGGER?
  27. >BinHex converts a binary file to a text file.  It seems that many programs
  28. >can only handle text files.  Programs like elm, trn, etc do not like binary
  29. >files.  So BinHex converts the binary file to an ASCII file.  The reason it
  30. >is bigger is (I could be wrong) that binary files use the full 8 bits whereas
  31. >ASCII only uses 7 out of the 8 bits.  So more bytes are needed to represent
  32. >the file.
  33.  
  34. Well, BinHex, uuencode and other similar programs map the entire set of
  35. ascii characters to a set of printable characters. Since the second set is
  36. smaller, combinations of printable characters may be used to represent an
  37. unprintable ascii character. For example, \ & / may be used to denote control
  38. and escape characters respectively : 
  39.  
  40. control-m : \m, control-M : \M, escape-m : /m and escape-M : /M
  41.  
  42. and \\ and // would represent \ and /.
  43.  
  44. If a file had r, c and e regular, control and escape characters respectively,
  45. the unencoded size and encoded size with the above scheme would be
  46. r + c + e and r + 2c + 2e respectively (if we treat \ and / as non-regular).
  47.  
  48. ----------
  49. Shantanu Ganguly
  50. Somerset (Motorola)
  51.  
  52. phone : (512) 795-7146                  Motorola Inc, Mail Drop OE 513
  53. fax   : (512) 795-7513                  6501 William Cannon Drive W.
  54.                                         Austin TX 78735-8598
  55. email : shantanu%ibmoto.com@oakhill.sps.mot.com
  56.  
  57.