GNOME Bugzilla – Bug 677237
Ubuntu 12.04, 64bits, Meld 1.5.3, unable to compare most html files.
Last modified: 2012-06-01 20:21:06 UTC
Unable to compare most html files. The attempt to open the second file mostly results in a message like this: "Could not open file /home/eveline/Desktop/Link to Encore/Documentatie/Enchelp_comment/79.html appears to be a binary file." I am absolutely sure this is pure html.
Needs a testcase.
Created attachment 215424 [details] Testcase file 1. Testcase file 1: 71.html. This file opens fine. Testcase file 2: 71_comm.html. Mend refuses to open this file compare with.
Created attachment 215425 [details] Testcase file 2. See comment at Testcase file 1.
71.html and 71_comm.html are the same file, and Meld won't open either of them. The problem is that these files are UTF-16 encoded text, which contains NULL bytes. Checking for NULL characters is a common (but flawed) check for binary files, which ends up being wrong whenever we encounter UTF-16 text. Anyway, this is a duplicate of bug 632540; we need a better way of handling files that look like they're binary. There's a workaround listed in that bug, but it's ugly. *** This bug has been marked as a duplicate of bug 632540 ***