Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!ingersoll!sxn From: sxn%ingersoll@Sun.COM (Stephen X. Nahm) Newsgroups: comp.dcom.lans Subject: Re: NFS - heterogeneity of Message-ID: <39788@sun.uucp> Date: 23 Jan 88 00:44:07 GMT References: <13212@comp.vuw.ac.nz> Sender: news@sun.uucp Reply-To: sxn@sun.UUCP (Stephen X. Nahm) Organization: Sun Microsystems, Mountain View Lines: 22 Distribution: In article <13212@comp.vuw.ac.nz> karen@comp.vuw.ac.nz (Karen Turner) writes: >With PC/NFS how does the client on the PC handle mappings to and from CR/LF >(otherwise how can you read UNIX text files from the PC?). On PC-NFS, a utility is provided to translate text files back and forth between MS-DOS style (CR/LF) and UNIX style (LF). No translation is done on during any data transfers (read/write). Thus, if a text file is created by PC-NFS on a UNIX machine, it will have the CR/LF style. If a UNIX user wants to use this file, the translation utility would be used first to convert it to UNIX style. Similarly, if the MS-DOS user wants to look at a UNIX text file, he or she will use a DOS version of the same utility on the file. NFS assumes that there are smart clients and "dumb" servers. Never expect the server to do anything fancy like this for you. However, if your client is clever enough to distinguish text files from binary files (through some feat of magic), there's certainly nothing wrong with training it to do the translation on the fly. But it probably won't be easy to get right in the general case. -- Steve Nahm sxn@sun.COM or sun!sxn