GNOME Bugzilla – Bug 640199
files with dos line endings bug
Last modified: 2011-01-21 22:21:38 UTC
I tried to compare two database dumps in csv format. Somewhere meld would inexplicably see one line missing in one of the files, although its there in both files and is the same in both too. I did spot easily, as all lines are in both files, just some not the same. I did recode line-endings from dos crlf to unix lf (fromdos) and voilà, the error disappeared. This is with big files, error appeared around line 1500. Meld version 1.3.0 from ubuntu 10.4. I just found out about meld today. Its a nice to have app. Thank You alot!
I'm pretty sure this is a duplicate of bug 627940, which was fixed in Meld 1.5.0. Can you please retest with 1.5.0 or current git?
Created attachment 178982 [details] hilite quirks sample crlf files and screenshots files with dos-line-endings produce accumulating off-by-one error in differences mark on consecutive lines.
I got me http://launchpadlibrarian.net/62445603/meld_1.5.0-0ubuntu1_all.deb which installed fine in this ubuntu 10.04 system. The ghost line no longer appears: horizontal offset of the mark is wrong. Something else happens now: the hilite in some lines is off. I spent some minutes and came up with two interesting test cases. please see attached zip archive above. the files NA, NB show up like in the picture NAB.png. See the hilite shift with each line! It is "off-by-one" accumulating the error! the files MA, MB are not real world examples, but look funny nevertheless. peter
Right - that's a different bug, also related to CRLF lines, and was fixed after 1.5.0. The fix is in commit: http://git.gnome.org/browse/meld/commit/?id=68f9c6691205299ac56427eea758bddee6c283f5 Testing with your examples, everything works fine for me with current git. Thanks for your bug report. *** This bug has been marked as a duplicate of bug 627940 ***