From: Xavier Noria Date: 2007-08-21T17:24:31+09:00 Subject: Re: Test if file is binary ? On Aug 21, 2007, at 10:21 AM, Rebhan, Gilbert wrote: > Is there an exisiting standard what is considered as a binary file, > means a > rule like check the first block from a file and = > > - if control characters (ASCII 0-32) and "high ASCII" (> 128) are > found >> 30 % > it's considered as binary file otherwise textfile > > - if control characters (ASCII 0-32 and > 128) are found == 0 it's > always > considered as textfile > > ?? What's the heuristic in Subversion? -- fxn