Bug: "svn diff" regards CR (^M) as EOL under Unix
From: Vincent Lefevre <vincent+svn_at_vinc17.org>
Date: 2007-05-14 17:30:30 CEST
Under Unix (both Linux and Mac OS X, with svn 1.4.2 and 1.4.3
To reproduce this bug, commit file diff-cr-bug1 (attached). This file
00000000 31 0d 61 0d 0a 32 0d 62 0d 0a 33 0d 63 0d 0a 34 |1.a..2.b..3.c..4|
Then do "svn cp diff-cr-bug1 diff-cr-bug2" and modify diff-cr-bug2
00000000 31 0d 61 61 0d 0a 32 0d 62 0d 0a 33 0d 63 0d 0a |1.aa..2.b..3.c..|
"svn diff diff-cr-bug2 | less" shows here:
Index: diff-cr-bug2
while "svn diff --diff-cmd =diff diff-cr-bug2 | less" shows that the
Index: diff-cr-bug2
Note: The real files are HTML files with mixed LF and CRLF end of lines,
-- Vincent Lefèvre <vincent_at_vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.