Problems comparing files with binary information

Support for our DiffMerge utility.

Moderator: SourceGear

Post Reply
aksel
Posts: 16
Joined: Fri Dec 17, 2004 6:56 am

Problems comparing files with binary information

Post by aksel » 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.
Attachments
fflivedesign.txt
Version 2 of the file
(302.32 KiB) Downloaded 692 times
version_204_fflivedesign.txt
Version 1 with the problem
(301.98 KiB) Downloaded 698 times
fflivedesign.txt
Item being compared
(302.32 KiB) Downloaded 706 times

jeffhostetler
Posts: 534
Joined: Tue Jun 05, 2007 11:37 am
Location: SourceGear
Contact:

This is a bug.

Post by jeffhostetler » 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.

aksel
Posts: 16
Joined: Fri Dec 17, 2004 6:56 am

Post by aksel » 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!

Post Reply