win32text extension and PDF files...
Douglas Philips
dgou at mac.com
Tue Apr 15 04:53:15 UTC 2008
On 2008 Apr 14, at 8:12 PM, Jesse Glick wrote:
> Mads Kiilerich wrote:
>> In 1.0 the clever guess is that files with \0 in the first 4k is
>> binary while all others are text and should be mangled.
>
> Which is unfortunately a bad guess in the case of PDFs, which often
> have
> NUL well after the 4k mark:
>
> http://www.selenic.com/mercurial/bts/issue1066
>
> This happened to me and I was able to work around it by running
> dos2unix
> on the PDF file, which does not seem to have harmed it any, but your
> mileage may vary.
Thanks Mads and Jesse.
After look at the bts issue... I'm going to avoid clever*code and use
the dumb*code just to be on the safest of safesides. :)
--Doug
More information about the Mercurial
mailing list