Luca Olivetti wrote:
If you "save as.." the attached file, you should get the same file, no matter if it is windows or linux.
Unfortunately, not. If the file is attached as plain text, eg. not base64 encoded, then line endings may be converted to platform default, and may even be converted while passing through mail servers.
However, GNU patch is smart enough to detect CRLF diffs and and to convert them to proper LF diffs.
The only safe way is to attach it as .diff.gz to force base64 encoding.
Cheers,
Udo