GPGTools/GPGServices — comment on commit 1fb005e2018b00c7d0ebca91064b9ecdfb414c1d
File:  line 0
By lukele:

From http://www.rossde.com/PGP/pgp_signatures.html:

"Line-end indicators are set to CR-LF (carriage-return and line-feed, hex 0A0D), replacing other line-end indicators such as CR-CR-LF or merely CR."

This may or may not apply here, but I think it would be easiest to have Libmacgpg convert
each \r\n first to \n and after that all \n to \r\n.
Or walk through each byte of the data and check for \n not preceded by \r.