On Aug 24, 2006, at 9:52 AM, Xavier Noria wrote: > On Aug 24, 2006, at 6:21 AM, Hal Fulton wrote: > >> Peñá 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