What would make hg diff see a txt file as binary?
Harry Putnam
reader at newsguy.com
Thu Sep 11 18:39:59 UTC 2014
Matt Mackall <mpm at selenic.com> writes:
> On Sat, 2014-08-30 at 13:09 -0400, Harry Putnam wrote:
>> Sorry, but no, it is NOT FALSE here.
>
> Ok. Then your files must be too big for the heuristic used by file(1)
> and diff(1).
>
> Both of these files contain a NUL and are identical except for one line
> near the end:
Thanks Matt, that was a very informative walk thru. Thanks for taking
the time and effort.
So, I guess what is happening here is the NULL is very near the end of
a file consisting of 3513 lines or 116 k, so `file' and `diff' are
missing that null.
And, as has been mentioned by others, very easy to get around this.
In my case, the null is absolutely unnecessary so removed it.
I guess any bug reports ought to go to `file' and `diff'.....
More information about the Mercurial
mailing list