Fix binary diff with Perforce.
Review Request #1154 — Created Oct. 6, 2009 and submitted
The fix for bug 585 accidentally got reverted with one of my earlier patches. This puts it back. This change also includes a critical fix to make Perforce work.
Posted a change with a binary file, it now uploads correctly.