mmcintos@sirius.UVic.CA (Mark McIntosh) (04/06/91)
I would like to hear from anyone who has implemented a more general Macintosh end-of-line to UNIX end-of-line (CR-LF) translation in AUFS CAP 6.0? Or anyone who has ideas where to start. I want: 1) translation of CR to LF in Mac TEXT documents for storage on UNIX 2) translation of LF to CR in UNIX and/or type TEXT documents when read by Mac I like this feature of Gatorshare and wish that AUFS had it. I know that AUFS now will do conversion for all files of creator 'unix' and type 'TEXT' (eg. files created by UNIX) when reading them. I would like it to happen for any file of type TEXT, when reading and writing. I can do it with postprocessing, but I am looking for automation of this within AUFS. An example of needing this would be to export a text file from a word processor to UNIX via AUFS. Or storing textual data generated on the Mac in a form useable by UNIX programs. I've looked at the code and can see that the current CR-LF translation occurs only on reads from UNIX files in line break mode. I would like to turn this on for all reads and write for files of type TEXT. I am wondering, specifically, how to tell if the file is of type TEXT at such a low level (ie. the routine FSRead or OSRead in the AUFS source). Do source changes seem preferrable to translation tables for performance reasons? Any info or pointers would be appreciated. I am worried about hacking at the code and upsetting something else! Mail to me and I'll summarize if there is interest. Mark J. McIntosh <mmcintos@sirius.UVic.CA> ____________________________________________________________________________ University of Victoria, Faculty of Engineering - Dean's Office Box 3055, Victoria, BC, CANADA \ "...the mystery of life isn't a problem to V8W 3P6 (604) 721-6049 \ solve but a reality to experience." UUCP: ...!{uw-beaver,ubc-vision}!uvicctr!sirius!mmcintos \ from Dune