home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / protocol / appletal / 2850 < prev    next >
Encoding:
Text File  |  1992-07-21  |  2.7 KB  |  71 lines

  1. Newsgroups: comp.protocols.appletalk
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!darwin.sura.net!mips!pacbell.com!tandem!ericg.tandem.com!user
  3. From: goodill_eric@tandem.com (Eric Goodill)
  4. Subject: Summary: Aufs Mac -> Unix copies and CR -> LF conversion
  5. Message-ID: <goodill_eric-210792115446@ericg.tandem.com>
  6. Followup-To: comp.protocols.appletalk
  7. Sender: news@tandem.com
  8. Nntp-Posting-Host: ericg.tandem.com
  9. Organization: Tandem Computers, Inc.
  10. Date: Tue, 21 Jul 1992 18:56:44 GMT
  11. Lines: 58
  12.  
  13. Hi,
  14.  
  15. I recently asked about why Mac -> Unix Aufs file copies didn't do CR -> LF
  16. conversion like to docs said it would, while Unix -> Mac copies did do LF
  17. -> CR conversion correctly.  I have two answers.
  18.  
  19. First, there was some pilot error involved in that the docs do state that
  20. the Mac type must be "TEXT" and the creator must be "unix."  I changed the
  21. creator to "unix," and all worked fine.  While this works, I wish that it
  22. would convert a wider range of file of type "TEXT" (if not all of them).
  23.  
  24. So, second, the following was sent to me by Dan Sahlin who has figured out
  25. how to modify Aufs to do this.  I think this (or something like it) should
  26. become part of the standard patch set.
  27.  
  28. Below is the message I recevied from Dan about how to modify Aufs.  I have
  29. not tried this yet myself.
  30.  
  31. --------------------------------------------------------------------
  32.  
  33. In the file aufs/afposncs.c you define how various files are converted.
  34. We have changed in aufs so that all TEXT files are converted except
  35. files ending with .raw, .gif, .tif and .tiff.
  36.  
  37. Our conversion table looks as follows:
  38.  
  39. NCS_TransTable ncs_transtables[] = {
  40. #ifdef FULL_NCS_SUPPORT
  41.   /* TEXT files ending with .raw, .gif, .tif and .tiff are not translated
  42. */
  43.   NCS_entry("Raw",".raw",NCS_AND,NULL,(byte *)"TEXT", NULL, NULL),
  44.   NCS_entry("GIF",".gif",NCS_AND,NULL,(byte *)"TEXT", NULL, NULL),
  45.   NCS_entry("TIF",".tif",NCS_AND,NULL,(byte *)"TEXT", NULL, NULL),
  46.   NCS_entry("TIFF",".tiff",NCS_AND,NULL,(byte *)"TEXT", NULL, NULL),
  47.   /* ISO 8859-1 latin1 */
  48.   NCS_entry("ISO 8859-1 Latin 1", ".latin1", NCS_AND, NULL, (byte *)"TEXT",
  49.             to_latin1,from_latin1),
  50. #endif
  51.   /* ASCII */
  52.   NCS_entry("ascii", NULL, NCS_AND, NULL, (byte *)"TEXT",
  53.             to_ascii, from_ascii),
  54. #ifdef SHORT_NAMES
  55.   NCS_entry("pc-ascii", NULL, NCS_AND, (byte *)"unix", (byte *)"TEXT",
  56.             pc_to_ascii, pc_from_ascii),
  57. #endif SHORT_NAMES
  58.   {NULL}
  59. };
  60.  
  61. This has worked fine for us for several years now.
  62.  
  63.         /Dan Sahlin, SICS, Sweden, dan@sics.se
  64.  
  65. --------------------------------------------------------------------
  66.  
  67. End of Dan's message.  I hope this helps some of you out there.
  68.  
  69. Cheers, Eric
  70. Eric Goodill, goodill_eric@tandem.com, Tandem Computers, Cupertino, Calif.
  71.