wdiff-bugs
[Top][All Lists]
Advanced

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

[wdiff-bugs] "wdiff -d" output is incorrect


From: Vincent Lefevre
Subject: [wdiff-bugs] "wdiff -d" output is incorrect
Date: Thu, 7 Feb 2019 01:17:56 +0100
User-agent: Mutt/1.11.2+108 (f0be14c2) vl-114617 (2019-01-25)

With GNU wdiff 1.2.2 (Debian package wdiff 1.2.2-2+b1),
on the diff file (also attached)

--- a
+++ b
@@ -1,7 +1,6 @@
 1a
 2a
 3a
-c e f g h i j k l m n o
 5a
 6a
 7a
@@ -9,6 +9,7 @@
 1b
 2b
 3b
+c d e f g h i j k l m n p
 5b
 6b
 7b

the command "wdiff -d" outputs

[--- a-]{+++ b+}
@@ -1,7 +1,6 @@
1a
2a
3a
{+5a
6a
7a
@@ -9,6 +9,7 @@
1b
2b
3b+}
c {+d+} e f g h i j k l m n [-o
5a
6a
7a
@@ -9,6 +9,7 @@
1b
2b
3b-] {+p+}
5b
6b
7b

and "wdiff -n -d" outputs

[--- a-]{+++ b+}
@@ -1,7 +1,6 @@
1a
2a
3a
{+5a+}
{+6a+}
{+7a+}
{+@@ -9,6 +9,7 @@+}
{+1b+}
{+2b+}
{+3b+}
c {+d+} e f g h i j k l m n [-o-]
[-5a-]
[-6a-]
[-7a-]
[-@@ -9,6 +9,7 @@-]
[-1b-]
[-2b-]
[-3b-] {+p+}
5b
6b
7b

which are both invalid (as "@@ -9,6 +9,7 @@" is regarded as text)
instead of

[--- a-]{+++ b+}
@@ -1,7 +1,6 @@
1a
2a
3a
[-c e f g h i j k l m n o-]
5a
6a
7a
@@ -9,6 +9,7 @@
1b
2b
3b
{+c d e f g h i j k l m n p+}
5b
6b
7b

I've also reported the bug in the Debian BTS:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=921585

-- 
Vincent Lefèvre <address@hidden> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Attachment: u.diff
Description: Text document


reply via email to

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