[Pythonmac-SIG] Line endings and readline()

Jack Jansen jack@oratrix.nl
Wed, 06 Sep 2000 14:18:11 +0200


> What about the situation where you want to mount a Unix volume? It's really
> irksome to share code between Mac and Unix this way: you don't really
> *want* conversion, you just want it to *work* on both platforms...

On the mac this isn't a problem, at least not with every remote-mounting 
package I've used (K/ashare currently, CAP in the past). The mac sees mac line 
endings, but the bits that are actually in the file on unix are unix 
line-endings and the conversion is done transparently on read and write. 
Because Mac files have the signature field this works fine.

Remote mounting Unix disks on Windows machines is much more of a problem, 
because Windows doesn't have the filetype. For that reason most remote 
mounting solutions for Windows don't do newline mapping, and hence you 
normally store your files with the Windows end of line convention.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm