home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.appletalk
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!darwin.sura.net!mips!pacbell.com!tandem!ericg.tandem.com!user
- From: goodill_eric@tandem.com (Eric Goodill)
- Subject: Summary: Aufs Mac -> Unix copies and CR -> LF conversion
- Message-ID: <goodill_eric-210792115446@ericg.tandem.com>
- Followup-To: comp.protocols.appletalk
- Sender: news@tandem.com
- Nntp-Posting-Host: ericg.tandem.com
- Organization: Tandem Computers, Inc.
- Date: Tue, 21 Jul 1992 18:56:44 GMT
- Lines: 58
-
- Hi,
-
- I recently asked about why Mac -> Unix Aufs file copies didn't do CR -> LF
- conversion like to docs said it would, while Unix -> Mac copies did do LF
- -> CR conversion correctly. I have two answers.
-
- First, there was some pilot error involved in that the docs do state that
- the Mac type must be "TEXT" and the creator must be "unix." I changed the
- creator to "unix," and all worked fine. While this works, I wish that it
- would convert a wider range of file of type "TEXT" (if not all of them).
-
- So, second, the following was sent to me by Dan Sahlin who has figured out
- how to modify Aufs to do this. I think this (or something like it) should
- become part of the standard patch set.
-
- Below is the message I recevied from Dan about how to modify Aufs. I have
- not tried this yet myself.
-
- --------------------------------------------------------------------
-
- In the file aufs/afposncs.c you define how various files are converted.
- We have changed in aufs so that all TEXT files are converted except
- files ending with .raw, .gif, .tif and .tiff.
-
- Our conversion table looks as follows:
-
- NCS_TransTable ncs_transtables[] = {
- #ifdef FULL_NCS_SUPPORT
- /* TEXT files ending with .raw, .gif, .tif and .tiff are not translated
- */
- NCS_entry("Raw",".raw",NCS_AND,NULL,(byte *)"TEXT", NULL, NULL),
- NCS_entry("GIF",".gif",NCS_AND,NULL,(byte *)"TEXT", NULL, NULL),
- NCS_entry("TIF",".tif",NCS_AND,NULL,(byte *)"TEXT", NULL, NULL),
- NCS_entry("TIFF",".tiff",NCS_AND,NULL,(byte *)"TEXT", NULL, NULL),
- /* ISO 8859-1 latin1 */
- NCS_entry("ISO 8859-1 Latin 1", ".latin1", NCS_AND, NULL, (byte *)"TEXT",
- to_latin1,from_latin1),
- #endif
- /* ASCII */
- NCS_entry("ascii", NULL, NCS_AND, NULL, (byte *)"TEXT",
- to_ascii, from_ascii),
- #ifdef SHORT_NAMES
- NCS_entry("pc-ascii", NULL, NCS_AND, (byte *)"unix", (byte *)"TEXT",
- pc_to_ascii, pc_from_ascii),
- #endif SHORT_NAMES
- {NULL}
- };
-
- This has worked fine for us for several years now.
-
- /Dan Sahlin, SICS, Sweden, dan@sics.se
-
- --------------------------------------------------------------------
-
- End of Dan's message. I hope this helps some of you out there.
-
- Cheers, Eric
- Eric Goodill, goodill_eric@tandem.com, Tandem Computers, Cupertino, Calif.
-