On Thu 11-May-06 2:03am -0600, you wrote:

> Bill McCarthy wrote:

>> >> When I checkout vim7 with svn under WinXP Pro, my text files
>> >> are all coming out as UNIX files (using LF instead of
>> >> CR/LF).
>> >> 
>> >> The svn program is designed to handle proper EOL for an
>> >> operating system when a property called svn:eol-stype is set
>> >> to "native".
>> >> 
>> >> Am I supposed to do anything special to cause svn to give my
>> >> text files to be stored as standard CR/LF files?
>> >
>> > Why do you want CR-LF files?  A single LF should work just fine.
>> 
>> The svn docs explain this quite well.  Some programs fail to
>> properly deal with LF only.  A good example is Microsoft
>> notepad.exe.

> In the context of Vim I don't think we should worry about notepad users.

Probably not, but there are other utility programs that
also fail on LF files.  As Mike wrote, the diff utility was
one of these - I haven't checked the new diff.exe that was
distributed with Windows Vim.

>> > Automatic LF to CR-LF translation always causes trouble somewhere.
>> 
>> I have never had a problem with CVS doing this.  I believe
>> the "trick" is to only mark 'native' those files which are
>> indeed text files.

> Right.  So what if files aren't properly marked as text or binary?  And
> there always is a mistake somewhere (I recall there was an icon file
> that was broken for a year before someone discovered it should be marked
> binary).

> I've seen too many files with mixed line endings, this can be a real
> mess.  Especially Unix files that were edited in Visual studio.

> Also remember that files on a USB stick will never adjust to the
> computer you plug it into.  Systems must be able to deal with both LF
> and CR-LF.

> There is only one solution eventually: Drop those CR-LF line separators.
> It just takes a bit of time before all MS-Windows programs can deal with
> them.

One big step forward is to (1) use the LF format in the
Window distribution and (2) use the same file structure for
Windows and UNIX.

-- 
Best regards,
Bill

Reply via email to