From: Xavier Noria Date: 2006-08-24T16:55:46+09:00 Subject: Re: [ANN] - ptools 1.1.1 On Aug 24, 2006, at 9:52 AM, Xavier Noria wrote: > On Aug 24, 2006, at 6:21 AM, Hal Fulton wrote: > >> Pe�a wrote: >> >>> ah, maybe i should state my problem better, how about "i'd like >>> to know if a file is a pure text file". how should i do that in >>> ruby? >> >> That depends on what you mean by a pure text file. :) >> >> Are you assuming Unicode, ASCII, or what? > > What is the heuristic used by Subversion for instance? Ah, yes, it is in their FAQ: http://subversion.tigris.org/faq.html#binary-files -- fxn