[Lazarus] Patch: problems with LineEndings

Bart bartjunk64 at gmail.com
Fri Mar 15 14:28:59 CET 2013


Hi,

Maybe an RTFM question, but I didn't find an answer.

I receive patches and they are in Unix style end-of-line (Lf) (and
this I cannot control).
My local sources are in Windows style (CrLf).

I cannot get patch to apply the patchfile to my sources.
I tried the option in patch that ignores whitespace, but it fails.

In the end I converted the patchfile to have Windows end-of-line
style, and that worked.

I use patch that comes with fpc 2.6.2RC1.

How to solve this?

Bart




More information about the Lazarus mailing list