<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Text File" newcontext="true">
<p>
Received: with ECARTIS (v1.0.0; list gopher);
 Fri, 28 Dec 2007 12:39:19 -0600 (CST)
Received: from floodgap.com ([66.159.214.137] ident=elvis)
	by glockenspiel.complete.org with esmtp
	(Exim 4.63)
	id 1J8K72-00040H-3f
	for gopher@complete.org; Fri, 28 Dec 2007 12:39:18 -0600
Received: (from spectre@localhost)
	by floodgap.com (6.6.6.666.1/2007.10.21) id lBSIdDbN017848
	for gopher@complete.org; Fri, 28 Dec 2007 10:39:13 -0800
From: Cameron Kaiser &lt;spectre@floodgap.com&gt;
Message-Id: &lt;200712281839.lBSIdDbN017848@floodgap.com&gt;
Subject: [gopher] Re: Improved binary file detection in Bucktooth 0.2.2
In-Reply-To: &lt;20071228162923.GA26591@pongonova.net&gt; from &quot;brian@pongonova.net&quot;
 at &quot;Dec 28, 7 10:29:23 am&quot;
To: gopher@complete.org
Date: Fri, 28 Dec 2007 10:39:13 -0800 (PST)
X-Mailer: ELM [version 2.4ME+ PL39 (25)]
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-Spam-Status: No (score 0.0): AWL=0.004
X-Virus-Scanned: by Exiscan on glockenspiel.complete.org at Fri,
 28 Dec 2007 12:39:18 -0600
X-archive-position: 1775
X-ecartis-version: Ecartis v1.0.0
Sender: gopher-bounce@complete.org
Errors-to: gopher-bounce@complete.org
X-original-sender: spectre@floodgap.com
Precedence: bulk
Reply-to: gopher@complete.org
List-help: &lt;mailto:ecartis@complete.org?Subject=help&gt;
List-unsubscribe: &lt;mailto:gopher-request@complete.org?Subject=unsubscribe&gt;
List-software: Ecartis version 1.0.0
List-Id: Gopher &lt;gopher.complete.org&gt;
X-List-ID: Gopher &lt;gopher.complete.org&gt;
List-subscribe: &lt;mailto:gopher-request@complete.org?Subject=subscribe&gt;
List-owner: &lt;mailto:jgoerzen@complete.org&gt;
List-post: &lt;mailto:gopher@complete.org&gt;
List-archive: &lt;http://www.complete.org/mailinglists/archives/&gt;
X-list: gopher
</p>
<p>&gt; &gt; The other thing I might do is just expand the number of file extensions
&gt; &gt; Bucktooth recognizes and generates item types for, since -B is the
&gt; &gt; fall-through case and there will always be datasets falling in the tails
&gt; &gt; of the bell curve.
&gt;
&gt; There is a Perl module that used the /etc/magic file to determine file
&gt; types in the same way as &quot;file&quot; does (File::Type).   That might be one
&gt; approach...
</p>
<p>Yeah, that would work too, except it would still be a lot of iteration (but
definitely would save the overhead of a fork). What I need to do is just
figure out a more reliable way to identify binary data cheaply (&quot;let Perl
do it&quot; being, of course, the cheapest way from Perl :-).
</p>
<p>--
------------------------------------ personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckaiser@floodgap.com
-- When in doubt, take a pawn. -- Mission: Impossible (&quot;Crack-Up&quot;) ------------
</p>
<p></p>
</card>
</wml>
