Problems comparing files with binary information

Support for our DiffMerge utility.

Moderator: SourceGear

Posts: 16
Joined: Fri Dec 17, 2004 6:56 am
PostPosted: Sun Oct 21, 2007 1:07 pm
Here are two files that do not compare properly with Diffmerge.

The problem occurs around line 3482 of the version_xxx.vca file where there are some binary characters.

This problem does NOT exist in the regular SOS diff comparison tool.
Item being compared
(302.32 KiB) Downloaded 355 times
Version 1 with the problem
(301.98 KiB) Downloaded 355 times
Version 2 of the file
(302.32 KiB) Downloaded 354 times

Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
PostPosted: Mon Oct 22, 2007 10:27 am
This is a bug. The 2 files have a NUL byte on line 3482.
There's a problem in one of the libraries I'm using that's
using something like strlen() when it shouldn't be.

if you remove the NUL bytes, the files should compare correctly.

Posts: 16
Joined: Fri Dec 17, 2004 6:56 am
PostPosted: Mon Oct 22, 2007 10:36 am
Thanks Jeff - I thought that might be it - but I wanted you to have some examples to make it easier to fix later on.

Thanks again - love DiffMerge!

Return to Support (DiffMerge)

Who is online

Users browsing this forum: No registered users and 2 guests