On Tuesday 24 May 2005 17:33, rghetta wrote:
> function binary_file(name)
>     lowname=string.lower(name)
>     -- some known binaries, return true
>     if (string.find(lowname, "%.gif$")) then return true end
>  

You base the text/binary decision on the name of the file.  How hard would it 
be to base it on the contents of the file instead, the way the Unix 'file' 
command does?  


_______________________________________________
Monotone-devel mailing list
Monotone-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monotone-devel

Reply via email to