Re: CRLF fun stuff again...


Subject: Re: CRLF fun stuff again...
From: Donald Lee (donlee_nat@icompute.com)
Date: Sat Feb 03 2001 - 01:16:26 EST


At 7:23 AM -0600 2/2/01, Duncan Sinclair wrote:
>Hi,
>
>Jeremy writes:
>>Hello,
>> I have just installed netatalk 1.4b2 and cannot get it to do the
>>CRLF->LF translation when copying files from a Mac to my Linux machine.
>
>> ...
>
>>The files I copy over are text files with the .txt extension generated by
>>Visual FoxPro (FOXX). Any ideas?
>
>This is (as far as I'm concerned) the single biggest bug in netatalk.
>
>The problem is that the cr/lf translation only happens when netatalk
>sees that the file is text before it is written. Unfortunately, since
>MacOS 8, the Finder doesn't set the file type to TEXT until after the
>copy is finished. Thus no cr/lf conversion.
>
> etc...

There has been a lot of discussion of the CR/LF translations on this list.

If I may add my two cents, I think it's a bad idea for the filesystem to
effectively blindly fondle and convert the data. There are plenty of tools
out there, like bbedit, that handle text files regardless of how their
line endings are done.

The downside of a problem with the CR/LF "feature" is irretrievably corrupted
data. What you get for this is arguably a minor "convenience".

I think it's a bad trade.

I keep it turned off, and recommend this to all who ask.

-dgl-



This archive was generated by hypermail 2b28 : Sun Oct 14 2001 - 03:04:31 EDT