monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Two new lists to get commit logs


From: Nathaniel Smith
Subject: Re: [Monotone-devel] Two new lists to get commit logs
Date: Sun, 17 Apr 2005 15:05:43 -0700
User-agent: Mutt/1.5.8i

On Sun, Apr 17, 2005 at 11:15:52PM +0200, Florian Weimer wrote:
> * Richard Levitte:
> 
> > I was a bit clumsy in the way I wrote that.  My question is, how do I
> > correctly detect a binary blob from text?
> 
> A few GNU tools use the presence of NUL characters to identify binary
> files (some of them only in the first few K of the file, AFAIK).

Yeah.

And as Olivier found, it helps if your existing guess_binary function
doesn't contain a C-style string of "characters that imply binary", of
which the first element is NUL ;-)

This is fixed on mainline.

-- Nathaniel

-- 
"...All of this suggests that if we wished to find a modern-day model
for British and American speech of the late eighteenth century, we could
probably do no better than Yosemite Sam."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]