It appears that attachments marked "patch", when pasted (not uploaded as a file), are wrongly processed. Test cases coming up.
Created attachment 175561 [details] nss.patch Create attachment by UPLOADING a patch file, flagging it PATCH.
Created attachment 175562 [details] nss.patch Create attachment by UPLOADING a patch file, not flagged as patch.
Created attachment 175563 [details] nss.patch pasted Create attachment by PASTING patch file contents, obtained by catting the nss.patch in Ubuntu terminal, then copying the contents. Flagged as PATCH.
Created attachment 175564 [details] nss.patch pasted Create attachment by PASTING patch file contents, obtained by catting the nss.patch in Ubuntu terminal, then copying the contents. NOT flagged as patch (bugzilla shows "auto-detect" for content type)
Created attachment 175565 [details] nss.patch pasted (copied via ssh) Contents PASTED, but obtained by copying the output of `svn diff security/nss` from terminal connection to the build server over ssh... Flagged as PATCH.
Created attachment 175566 [details] nss.patch pasted (copied via ssh) Contents PASTED, but obtained by copying the output of `svn diff security/nss` from terminal connection to the build server over ssh... NOT flagged as patch.
So, if flagged as PATCH and copied over SSH, it's mungled: https://bz-attachments.freebsd.org/attachment.cgi?id=175565&action=diff&format=raw&headers=1