bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-diffutils] bug#25343: diffutils run with option -B do not ignore bl


From: Jeff THUONG
Subject: [bug-diffutils] bug#25343: diffutils run with option -B do not ignore blank lines with Windows line ending
Date: Tue, 3 Jan 2017 11:51:31 +0800

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]