On Sun, Jun 24, 2012 at 4:14 PM, James Bremner <ravenspo...@yahoo.com>wrote:
> > Thank you for your attention to this. > > I have sent an email with the file attached to > Thanks for sending the file. The "diff" logic determines "binary" as I described previously: Files that do not contain \000 and with no line longer than 8191 characters. However, the "artifact" webpage is a little more restrictive. For the "artifact" page a binary file is one that contains any of several control characters. See http://www.fossil-scm.org/fossil/artifact/ac5a32d3?ln=40-43 for the list of character codes that signal to Fossil that the file is binary. In your case there is a Ctrl-B (ascii 0x02) in the 2150th byte of the file, which makes Fossil think it is a binary file. I'm open to tweaking the mimetype_from_content() function if anybody has any better suggestions on how to determine the mimetype of a file based on its content. The function has worked reasonably well, historically, but clearly falls down for "unit_test.cpp". -- D. Richard Hipp d...@sqlite.org
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users