Subject: | makepatch: eol of the patched file not respected in patch |
If on Win32 you make a patch of a unix file, the patch mostly has Unix
EOL but the lines of the context and the modified lines have
Windows-style EOL.
- A patch is a text file that always applies to text files. The patch
file should have a consistent EOL for the whole file, the Unix style.
- When applying a patch, the EOL style of the patched file must be
respected.
- Checksums should be computed based on a canonical EOL encoding (Unix)
to be independent of the local EOL style.