Linda W wrote:
> Seems to be a bug in the "diff.exe" program included
> in the VIMRUNTIME dir in the Win32-GUI distribution.
>
> It compares files with CRLF endings as "identical" with
> the same text & "LF" endings.
>
> Note -- I'm not using any of the "ignore white space", or ignore
> CR's at the end of the line.
This is intentional. You are doing a diff between buffer contents,
where the CR vs CRLF difference has been removed. And possibly encoding
has ben converted to 'encoding'.
I have tried different diff programs and this was the only one that
handled line breaks reasonably well. If you try others they either
can't handle LF line breaks or for CRLF line breaks they include the CR
in the diff output.
> I was trying to convert all the text files in the Win vimruntime
> dir to standard unix (posix?) line endings (i.e. using half
> as many end-of-line characters by reducing eoln to a single
> "LF"). I couldn't figure out why files that were clearly of
> different size compared as "equal" (no output from diff). Well
> it's because one of them used CRLF's for line endings, and the
> other was converted to the unix form.
>
> I don't know if someone thought comparing unequal files was helpful,
> but I think it is really not a good idea to compare different files
> as anything but "different", unless the user explicitly says to
> ignore line-endings or white space...etc.
You could use another diff.exe by changing the 'diffexpr' option. The
Cygwin diff should see the difference between LF and CRLF.
--
hundred-and-one symptoms of being an internet addict:
62. If your doorbell rings, you think that new mail has arrived. And then
you're disappointed that it's only someone at the door.
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///