SUMMARY: BinHex conversion on Sun

From: Haiquan Dai (daili@csbnmr.health.ufl.edu)
Date: Fri Apr 21 1995 - 16:48:55 CDT


Thanks for all quick responses. Seems there are quite a number of programs
can do the job. I have only tried 'mcvert', it works fine. I got it from the
following ftp site: sumex-aim.stanford.edu

Thanks again!

Here is the summary of mails I've got. some are still coming..

My question:

>Hello,
>
>Is there anyway we can convert the BinHex format from email either directly
>or indirectly on Sun? we are running SunOS 4.1.3., Will summarize. Thanks,
>

Answers:

>>
From: u2is9gef@gregsun.crrel.usace.army.mil (GREGOR E FELLERS )

I just got a binhex file two minutes ago. PLease share your
answers with me.

>>
From: Gary Smith <mage@jimmy.harvard.edu>

Try `mcvert', that's what I use here. I don't remember where I got it, but
it should be archie-able.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      Gary Smith (mage@dfci.harvard.edu) Senior Systems Analyst
  Department of Biostatistics, Dana Farber Cancer Institute, Boston, MA
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

>>
From: amy.hollander@amp.com (Amy Hollander)

Use Eudora

>>
From: Dave Fetrow <fetrow@biostat.washington.edu>

MACUTIL(L) LOCAL COMMANDS MACUTIL(L)

NAME
     macutil - A package that deals with MacIntosh files on a
     Unix system

DESCRIPTION
     macutil is a package that contains a number of utilities
     that deal with MacIntosh files on a Unix system. It con-
     tains the following programs:

     binhex
          Convert files to BinHex 4.0 compatible hexified form.

     frommac
          Receives files from the MacIntosh on the Unix system.

     hexbin
          Convert hexified files to their MacIntosh format.

     macsave
          vidual files.

     macstream
          Combine a series of files to a MacBinary stream.

     macunpack
          Unpack a MacIntosh archive into its constituents.

     tomac
          Transmits files from the Unix system to a MacIntosh.

BUGS
     This manual page is hopelessly incomplete!

SEE ALSO
     binhex(1), frommac(1), hexbin(1), macsave(1), macstream(1),
     macunpack(1), tomac(1)

AUTHOR
     Dik T. Winter, CWI, Amsterdam, The Netherlands (dik@cwi.nl)

-- 

-Dave Fetrow fetrow@biostat.washington.edu http://www.biostat.washington.edu/biostat/staff/fetrow.html

>> From: minh@codac.codac.telecom.com.au (Minh Tran)

'mpack' will do what you want. I think you can find it at ftp.andrew.cmu.edu:pub/mpack/

Cheers, Minh -- Minh Tran Email: minh@codac.codac.telecom.com.au Voice: +61-3-865-7587 minh@psm01.flexcab.itg.telecom.com.au Fax: +61-3-865-7581 STD DISCLAIMER APPLIED >>

From: sunm@erm.oz.au (Brett Newton-Palmer(Sun Admin))

Yesthereis! enclosed is "xbin" compiled for SunOS + man page ... works well - I've tested it on MS Word files from a Mac ...

cheers, Brett ----------------------------------------------------------------------------- Brett Newton-Palmer, ** e-mail: brett@erm.oz.au Technical Support Manager, ** Phone: +61 9 388 2900 Earth Resource Mapping Ltd. ** Fax: +61 9 388 2901 ======================== Perth, Western Australia. ==========================

---------- X-Sun-Data-Type: compress X-Sun-Data-Description: compress X-Sun-Data-Name: xbin.Z X-Sun-Encoding-Info: uuencode X-Sun-Content-Lines: 213

begin 600 xbin.Z M'YV0@08$6 )"" $ @7"B 4D$0"A<BY 5!(;0!H(!(PDBDD@H0#06 (D!) M ! %%PIBH"8B'+(!!1$( R & 2!( (( 2 0 "$!P$H^%GP( 2?0 LNXC0" M% BC I,>)0J@T[A?:%[$=%5!'(H(,2%)$,$@Z!))%0&P@@ P4907,Q2J@@" MD"B($G@^H2IL B@O@$"%69 7P!*JZ#""$8:1C#B,:$@5R"F) * (6MMR%8<$ M4MJY( I<B&A) C@!F-A:"$I#4UI3;!% $@" @K3&H ^,+E@:G(34 %877.&Z M=F8$F^F ;2M6Q(:@(] J5!6;,2@T-W/N!+#@^.;.!(!)0 L@0N[= 'K_9ELA MZ 77"JW#&0DL@+FF?-0U!<2N*2&8;<U4DS!-(0(@!C.%@0R!H# "( *"0 & M&0Q"XAD( 7Q"3$'2\1'(,> @$ @Z!4' DP$1AF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.1T]A0L $P#6#1SCQ_D&3F<=K:6%='>J5_8J2@^GX70# MZ[6]0D].^@98:1EX PR3O8J!94PX#2?B-)VEUG1&3LM).4=GI:C&J%-UME=, M2@=.J/[TG<"3DQ;/XYD\Z7'S?)[T>'I6S^NI/_FG_R2@ 72 %M #FD#IP )M MH-C3@F+062M"GRD)+9PFE!ZKT,=)9UWH-D6E-G24[M >2FF!J!P0HD24E>)2 M)&I.L^D7Z*)?-(P24S*Z0SDI&B6C:]0F%],W*DWC:*:8HP-7FUI3D-Q'_RA_ MK9]Z%))RVH"L2:%H3^ZD>,"8AE(C"D5-*5%^G*OT<XIC71I)W4 OS9V_="9C M4#H 2I'I';VFW]8E?^1NZD3!:.1LR>B4]\KEN4R7Z[)=OLMX.2_KY;W,E_NR M7_[+@#DP"^;!3)@+LV$^S(@Y,2OFQ<R8&[-C?LR0.3)+YLE,F2NS9;[,F!GU ! O[+ end ---------- X-Sun-Data-Type: default X-Sun-Data-Description: default X-Sun-Data-Name: xbin.man X-Sun-Content-Lines: 90

This is version 2.3 of xbin. The major changes include perfomance improvements from Dan LaLiberte of UIUC, fixes for 16-bit machines from Jim Budler of AMD, and a fix for a bug in the run-length encoding code.

This version of "xbin" can handle all three BinHex formats (so far). Thanks to Darin Adler at TMQ Software for providing the code to compute and check the CRC values for all three formats. (There are no plans to support binhex5.0, as its use of binary encoding makes it useless for sending programs through e-mail).

Other new features include "list" and "verbose" modes, the ability to convert several binhex files at one time, the ability to read standard input, somewhat better error handling, and a manual page.

Any extraneous mail or news headers are ignored, but xbin relies on finding a line which starts with "(This file" to know when the header ends and the good stuff begins. You can add one of these by hand if it's been lost.

To compile it on USG systems, type: cc -o xbin xbin.c

or on Berkeley systems: cc -o xbin xbin.c -DBSD

As usual, please report any problems, suggestions, or improvements to me.

Dave Johnson Brown University Computer Science ddj%brown@csnet-relay.ARPA {ihnp4,decvax,allegra,ulysses,linus}!brunix!ddj

=================== Here's an informal description of the HQX format as I understand it: ----- The first and last characters are each a ':'. After the first ':', the rest of the file is just string of 6 bit encoded characters. All newlines and carriage returns are to be ignored.

The tricky part is that there are holes in the translation string so you have to look up each file character to get its binary 6 bit value. I found the string by looking at a hex dump of BinHex:

!"#$%&'()*+,-012345689@ABCDEFGHIJKLMNPQRSTUVXYZ[`abcdefhijklmpqr

I can't see how this aids or abets any kind of error recovery, but if you ran into a char not in the list, you would know something's wrong and give up.

There is some run length encoding, where the character to be repeated is followed by a 0x90 byte then the repeat count. For example, ff9004 means repeat 0xff 4 times. The special case of a repeat count of zero means it's not a run, but a literal 0x90. 2b9000 => 2b90.

*** Note: the 9000 can be followed by a run, which means to repeat the 0x90 (not the character previous to that). That is, 2090009003 means a 0x20 followed by 3 0x90's.

Once you've turned the 6 bit chars into 8, you can parse the header. The header format consists of a one byte name length, then the mac file name, then a null. The rest of the header is 20 bytes long, and contains the usual file type, creator/author, file flags, data and resource lengths, and the two byte crc value for the header.

The data fork and resource fork contents follow in that order. There is a two byte file crc at the end of each fork. If a fork is empty, there will be no bytes of contents and the checksum will be two bytes of zero.

So the decoded data between the first and last ':' looks like:

1 n 4 4 2 4 4 2 (length) +-+---------+-+----+----+----+----+----+--+ |n| name... |0|TYPE|AUTH|FLAG|DLEN|RLEN|HC| (contents) +-+---------+-+----+----+----+----+----+--+

DLEN 2 (length) +--------------------------------------+--+ | DATA FORK |DC| (contents) +--------------------------------------+--+

RLEN 2 (length) +--------------------------------------+--+ | RESOURCE FORK |RC| (contents) +--------------------------------------+--+

------ >>

From: raoul@MIT.EDU

Yeah, CAP has tools to do this. What do you want to change it *to*? Apple double, apple single, aufs, what? CAP is available from rutgers.edu:/src/cap*

Nico Garcia raoul@mit.edu My opinions are my own, not MIT's or my employer's or my cat's (Well, maybe my cat's....)

>>

From: Claus Assmann <ca@informatik.uni-kiel.de>

I have appended a copy of a program I found somewhere.

Regards,

Claus Assmann /* * binhex -- binhex aufs files * * if called binhex handles aufs files, if called unxbin handles *.{rsrc,data,info} files * will process multiple files * * Nigel Perry, Aug 90, np@doc.ic.ac.uk * * This is a hacked version of... * * unxbin -- convert files generated by xbin or macget into BinHex 4.0 format. * * David Gentzel, Lexeme Corporation * * (c) 1985 David Gentzel * may be used but not sold without permission * * This is based on a Unix(tm) program with the same name and function written * by ????. Original was a series of small programs (8to6, crc, etc.) piped * together and run by a shell script. I completely rewrote the system as a * C program (speeding it up considerably, needless to say), added run-length * compression, and bullet-proofed (at least partly) the thing. Unfortunately, * I have lost the name of the original poster (to net.sources.mac) without * whom this would never have appeared. * * created dbg 09/10/85 -- Version 1.0 */

#include <stdio.h> #include "aufs.h"

#ifdef VMS # define PROGRAMNAME "unxbin" # define EXIT_ERROR ((1 << 28) | 2) # ifndef MAXNAMLEN # define MAXNAMLEN 127 # define MAXBASENAME 63 # endif #else # include <sys/types.h> # include <sys/dir.h> # define PROGRAMNAME (argv[0]) # define AUFSNAME "binhex" # define EXIT_ERROR 1 # ifndef MAXNAMLEN # ifdef DIRSIZ # define MAXNAMLEN DIRSIZ # else # define MAXNAMLEN 14 # endif # endif # define MAXBASENAME (MAXNAMLEN - 2) #endif

extern char *sprintf(), *strrchr(); extern void aufs_gethead(), gethead(), fakehead(), make_buffer_crc(), make_file_crc(), putchar_run();

main(argc, argv) int argc; register char *argv[]; { register FILE *rsrc, *data, *info; char fbuf[256], infobuf[128]; register char *file; int aufs; int i; FinderInfo fndr_info;

aufs = strcmp(PROGRAMNAME, AUFSNAME) == 0;

if (argc < 2) { fprintf(stderr, "Usage: %s file(s)\n", PROGRAMNAME); exit(EXIT_ERROR); }

for(i = 1; i < argc; i++) { #ifdef VMS if ((file = strrchr(argv[i], ']')) == NULL) file = strrchr(argv[i], ':'); #else file = strrchr(argv[i], '/'); #endif if (file) file++; else file = argv[i]; if (strlen(file) > MAXBASENAME) file[MAXBASENAME] = '\0'; file = argv[i]; (void) sprintf(fbuf, aufs ? ".resource/%s" : "%s.rsrc", file); fbuf[MAXNAMLEN] = '\0'; rsrc = fopen(fbuf, "r"); (void) sprintf(fbuf, aufs ? "%s" : "%s.data", file); fbuf[MAXNAMLEN] = '\0'; data = fopen(fbuf, "r"); if (rsrc == NULL && data == NULL) { fprintf(stderr, "No resource or data forks for %s\n", argv[i]); exit(EXIT_ERROR); } if (rsrc == NULL) fprintf(stderr, "Warning: no resource file %s\n", fbuf); if (data == NULL) fprintf(stderr, "Warning: no data file %s\n", fbuf); (void) sprintf(fbuf, aufs ? ".finderinfo/%s" : "%s.info", file); fbuf[MAXNAMLEN] = '\0'; info = fopen(fbuf, "r"); if (info == NULL) fprintf(stderr, "Warning: no info file %s\n", fbuf);

if(aufs) { /* make the .finderinfo file */ FILE *oinfo;

sprintf(fbuf, ".finderinfo/%s.Hqx", file); if((oinfo = fopen(fbuf, "w")) == NULL) { perror(fbuf); exit(1); } bzero(&fndr_info, sizeof(FinderInfo)); bcopy("TEXT", &fndr_info.fndr_type, 4); bcopy("BnHq", &fndr_info.fndr_creator, 4); fndr_info.fi_magic1 = FI_MAGIC1; fndr_info.fi_version = FI_VERSION; fndr_info.fi_magic = FI_MAGIC; fndr_info.fi_bitmap = FI_BM_MACINTOSHFILENAME; strcpy(fndr_info.fi_macfilename, file); fwrite(&fndr_info, sizeof(FinderInfo), 1, oinfo); fclose(oinfo); }

(void) sprintf(fbuf, "%s.Hqx", file); fbuf[MAXNAMLEN] = '\0'; if (freopen(fbuf, "w", stdout) == NULL) { fputs("Couldn't open output file.\n", stderr); exit(EXIT_ERROR); } fputs("(This file must be converted with BinHex 4.0)\n:", stdout); if (info != NULL) { if(aufs) { (void) fread(&fndr_info, sizeof(FinderInfo), 1, info); (void) fclose(info); aufs_gethead(&fndr_info, data, rsrc, infobuf); } else { (void) fread(fbuf, 128, 1, info); (void) fclose(info); gethead(fbuf, infobuf); } } else fakehead(file, rsrc, data, infobuf); make_buffer_crc(infobuf, 20 + infobuf[0]); make_file_crc(data); if (data != NULL) (void) fclose(data); make_file_crc(rsrc); if (rsrc != NULL) (void) fclose(rsrc); putchar_run(EOF); puts(":"); } (void) fclose(stdout); }

>> From: Glenn Carver <glenn@atm.ch.cam.ac.uk>

Yes, you should get hold of a program called 'mcvert'. It is on the info-mac archives in info-mac/Compress-Translate/mcvert-216.shar.gz.

I use it all the time and it works fine.

Hope this helps.

Glenn

------------------------------------------------------------------------ Dr Glenn Carver Email: glenn@atm.ch.cam.ac.uk Centre for Atmospheric Science Phone: (44-223) 336521 Chemistry Department Fax : (44-223) 336473 Cambridge University Web : Cambridge, Lensfield Road, http://www.atm.ch.cam.ac.uk/~glenn CB2 1EW, UK ------------------------------------------------------------------------

>> From: bern@TI.Uni-Trier.DE (Jochen Bern)

De-Binhexing is easy (ask your Archie for "hexbin"), but I've never seen anything come out of it that didn't need a Mac though.

Regards, J. Bern -- /\ /""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""\ / \/ bern@uni-trier.de (7Bit,Size Limit!) | P.O. Box 1203 | Ham: \/\ / J. \ bern@ti.uni-trier.de (8Bit,SUN Att.) | D-54202 Trier | DD0KZ / \ \Bern/ No Finger etc.; Use Mail (Subj. "##" for Autoreply List) and \ / \ /\ WWW. /\/ \/ \____________________________________________________________/

>> From: Jac.deWilde@wbmt.tudelft.nl (System Manager)

Hello,

metoo please.

Thanks

Koos de Wilde

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Koos de Wilde | email: Jac.deWilde@WbMT.tudelft.nl Department of Mechanical Engineering and | phone: 31.15.78.3757 or Marine Technology, | 31.15.78.4872 (secr.) Delft University of Technology, | fax : 31.15.78.4264 Ship Design Group | telex: 38151 butud nl Mekelweg 2 | 2628 CD Delft | The Netherlands | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

--- end ----



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:22 CDT