Hi,
When comparing 2 files with Windows line ending (i.e. '\r\n'), the option -B does not ignore blank lines.
I have the following files
--file1.txt--
Line 1<eol>
<eol>
Line 2<eof>
--file2.txt--
Line 1<eol>
Line 2<eof>
with <eol> being EOL character and <eof> being the end of file.
When <eol> is Windows ending, the result of "diff -B file1.txt file2.txt" is
2d1
<
When <eol> is Unix ending, the result is correct and no difference is returned.
The problem occurred on
* Diff 3.3 on Ubuntu 14.04 LTS
* Diff 2.8.7 on Windows 10 64bits, ported by GnuWin32
* Diff 2.8.7 on Windows XP, Win 7 SP1 x64, Win 8.1 x64, and Win 10 x64 with source code from GnuWin32 compiled on Cygwin
Is it a bug?
Thanks