[comp.sys.mac] BinHex 4.0 vs 5.0 question

doherty@Alliant.COM (Dave Doherty) (07/22/88)

I have a BinHex question. I have several files that have:
(This file must be converted with BinHex 4.0)

My question is... Can I use BinHex 5.0? I thought I could and have done it
before but now I'm have problems. 

When I'm kermit-ing from my Unix system to my Mac do I use binary mode or
text - or does it matter

Any help whoul help :-)    THANKS IN ADVANCE.


-- 
  UUCP: ...!{linus | mit-eddie}!alliant!doherty
  ARPA: doherty@Alliant.COM
  Dave Doherty  (617) 486-1326
  Alliant Computer Systems Corporation One Monarch Drive,  Littleton, MA  01460

ostroff@oswego.Oswego.EDU (Boyd Ostroff) (07/23/88)

In article <2142@alliant.Alliant.COM> doherty@Alliant.COM (Dave Doherty) writes:
>I have a BinHex question. I have several files that have:
>(This file must be converted with BinHex 4.0)
>
>My question is... Can I use BinHex 5.0? I thought I could and have done it
>before but now I'm have problems. 
>

You *shouldn't* have any problems converting a file created with BinHex 4.0 
using Binhex 5.0 - at least it's always worked for me.  It won't work the
other way around, though.  If you convert an application using BinHex 5.0,
it *can't* be converted back using 4.0.

Also note that BinHex 5.0 does not convert an application into a suitable form
to post on a UNIX system (at least, it wouldn't for me :-)  It uses some
sort of "MacBinary" format which contains non-printing. 

Another important note - BinHex 4.0 is PUBLIC DOMAIN (free to copy and keep),
whereas 5.0 is SHAREWARE (you *did* send in your $10 fee....right?).  All
things considered, if you just want to send/receive files from a UNIX system,
you might as well stick with BinHex 4.0 [personal opinion].

::::::::::::::::::::::::::::::::::::::::: 
::  Boyd Ostroff, Technical Director   :: System Operator, "The CallBoard"
:: Department of Theatre, SUNY Oswego  :: - Serving the performing arts -
:: Internet: ostroff@oswego.Oswego.EDU :: (315) 947-6414, 300/1200 baud, 8N1
::        Voice: (315) 341-2138        :: UUCP ...sunybcs!oswego!cboard!ostroff
:::::::::::::::::::::::::::::::::::::::::

dcc@ncsuvx.ncsu.edu (Daniel Carr) (07/23/88)

In article <2142@alliant.Alliant.COM> doherty@Alliant.COM (Dave Doherty) writes:
>I have a BinHex question. I have several files that have:
>(This file must be converted with BinHex 4.0)
>
>My question is... Can I use BinHex 5.0? I thought I could and have done it
>before but now I'm have problems. 

yes, you should be able to use Binhex 5.0 to "un-binhex" a .hqx file.
You can't use binhex 5.0 to make a .hqx file because it is for converting
Macbinary files.

>When I'm kermit-ing from my Unix system to my Mac do I use binary mode or
>text - or does it matter
>
>Any help whoul help :-)    THANKS IN ADVANCE.

if you're using kermit, you should use text mode if you are transferring a
text file, and binary if you're transferring a binary file.  if you're
transferring a .hqx file, you can use text mode.  an easy test is to try to
edit the file with vi.

let me know if you have any problems.  i managed to learn a lot about Binhex
and MacBinary format when I wrote an article about them for our Computing
Center Newsletter.

daniel carr
:
-------------------------------------------------------------------
       |                   |	Daniel Carr:
       |            .      |		dcc 	 @ ncsuvx.ncsu.edu  
      _|   _   __       _  |            netoprdc @ ncsuvm.BITNET
     <_|  <_|  | |  |  <'  |		d.c.carr @ GEnie
-------------------------------------------------------------------

Mark_Peter_Cookson@cup.portal.com (07/24/88)

No, you can't use Binhex 5.0 to convert a 4.0 doc.  5.0 is used to convert
an application or doc that was downloaded without MacBinary and came out as a
text file.  4.0 is used to encode a file and then decode it at the destination.

Mark Cookson

ostroff@oswego.Oswego.EDU (Boyd Ostroff) (07/25/88)

In article <7627@cup.portal.com> Mark_Peter_Cookson@cup.portal.com writes:
>No, you can't use Binhex 5.0 to convert a 4.0 doc.  5.0 is used to convert

I beg to differ - you CAN use 5.0 to DECODE a 4.0 doc; we've been doing
it for a long time here.  You CAN'T use 4.0 to decode a 5.0 doc.

::::::::::::::::::::::::::::::::::::::::: 
::  Boyd Ostroff, Technical Director   :: System Operator, "The CallBoard"
:: Department of Theatre, SUNY Oswego  :: - Serving the performing arts -
:: Internet: ostroff@oswego.Oswego.EDU :: (315) 947-6414, 300/1200 baud, 8N1
::        Voice: (315) 341-2138        :: UUCP ...sunybcs!oswego!cboard!ostroff
:::::::::::::::::::::::::::::::::::::::::

ltt2p@mendel.acc.Virginia.EDU (Lucien T. Thompson) (07/25/88)

     Either Binhex 4.0 or 5.0 will work fine for de-binhexing files
with that header.  If you are having problems, try stripping headers
and footers, and/or removing the blank line between that message and the
actual encoded file.
     
     As far as Kermit goes, I've always used text for downloads from our
Unix box.  Works fine...

     Have fun with 'em....

-Tres

----------------------------------------------------------------------------
Tres Thompson                                             ltt2p@virginia.edu
Not a student no more.............Yowsa, yowsa, yowsa, do-wah, do-wah, do...
----------------------------------------------------------------------------

Mark_Peter_Cookson@cup.portal.com (07/26/88)

Sorry for the confusion, but what I did was take a net doc (with text in it)
and try and undo it in 5.0 and got the CRC doesn't match (something like that,
don't remember exactly) and assumed it couldn't do 4.0 docs.  I have always
used StuffIt instead of Binhex, and StuffIt has no problem sorting out the
file from the rest of the garbage in the file.  Once again, sorry.

"It is better to be silent and thought a fool, than to open your mouth and
remove all doubt."  (I should listen to myself!!!)

Mark Cookson