[Lazarus] Patch: problems with LineEndings

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Mar 15 14:39:59 CET 2013


Bart <bartjunk64 at gmail.com> hat am 15. März 2013 um 14:28 geschrieben:
> 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).

The Linux "patch" is clever enough to auto convert line endings.
Maybe the fpc version converts to Linux line ending instead of Windows line
endings?


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

whitespaces are tabs and spaces, not line endings.


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

Yes, that's the solution.


> I use patch that comes with fpc 2.6.2RC1.
>
> How to solve this?



Mattias




More information about the Lazarus mailing list