Comment 2 for bug 540400

Revision history for this message
Tim Penhey (thumper) wrote :

The way that bzr determines a file is binary is a bit crude. In that it checks for a null byte in the first 1024 characters of the file.

Your pdf file probably doesn't have one.

Perhaps bzrlib could also use the guessed mimetype of the file to help determine if the file is text or not.