|
Posted by Bent Stigsen on 11/18/61 11:42
Jerry Stuckle wrote:
> Bent Stigsen wrote:
[snip]
>> The only purpose of ascii transfer is to translate line-endings
>> (CR,LF,CRLF) between differing systems, but many text-editors can
>> handle any type, so always using binary as Kimmo suggest is a good
>> option, since this leaves files intact, whereas using ascii by mistake
>> could render a file useless.
>>
>> Although I would think that to use ascii-transfer if and only if file
>> has an extension of ".txt" should be safe.
>>
>> /Bent
>
> Transferring a text file from Windows to Unix will cause problems in VIM
> and many other Unix editors. And not all Windows editors support
> Unix-style nl characters.
Those bastards. Well, they just have to change. Other transfer
protocols or portable storage devices makes it impossible to control
anyway, so (using a bad analogy) insisting on proper conversion when
using ftp is like waving a hand to stop a hurricane.
If the destination is a web-folder or accessed in an alternative way
by different clients, it doesn't matter in the slightest, or in worst
case even a bad idea.
> Better to determine if it's a text file, and only if unknown default to
> binary.
I understand that it was designed that way, so that things was neat
and tidy in both camps, but the battle of the line-endings is already
lost to chaos, nothing short of a revolution is going to change that.
/Bent
[snip]
Navigation:
[Reply to this message]
|