- Fix diff scan and output for new files within a non-CVS diff
- Fix file name mangling for new files with whitespace
- Convert line endings to unix

This also should fix an issue in Bugzilla for patch attachments being
truncated, if they contain new files.

Some changes from https://rt.cpan.org/Public/Bug/Display.html?id=94181 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=399391 were incorporated in this
patch.

PR:		193785, 190724
Approved by:	toni.viemero@iki.fi (maintainer)


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@368776 35697150-7ecd-e111-bb59-0022644237b5