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." _______________________________________________ Monotone-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/monotone-devel
