Block binary files?

Patrick Mézard pmezard at gmail.com
Wed Jul 16 06:21:49 UTC 2008


Douglas Philips a écrit :
> On or about 2008 Jul 15, at 3:40 PM, Patrick Mézard indited:
>> Douglas Philips a écrit :
>>> For example, the extension for doing windows line-ending conversions
>>> is fooled by the .PDF files I have because the .PDFs don't have a
>>> null(0) early enough in the file. And that is just a heuristic to
>>> start with.
>> This is fixed, now we read the whole content.
> 
> OK, but isn't it still a heuristic?

Depends how you define a binary file I guess. Is an UTF-16 encoded text file a binary file or not ? You are right, things are not simple.

--
Patrick Mézard



More information about the Mercurial mailing list