[Lazarus] Are lazarus / fpc sensitive to line endings?

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Oct 16 23:25:29 CEST 2015


On Fri, 16 Oct 2015 21:45:07 +0200
Bo Berglund <bo.berglund at gmail.com> wrote:

>[...]
> So instead I figured I could make a samba share on the Pi where the
> dev files reside and then use my Win7 PC which is connected by VPN as
> the vehicle to check out and commit source files. All I need to do is
> to connect my PC to the Pi share and then work with CVS from the PC
> side.
> 
> Until it dawned on me that when CVS on Windows operates it assumes
> line endings as CRLF whereas Linux usually only uses LF.
> 
> So is fpc and/or lazarus sensitive to line endings like shell scripts
> are?

Lazarus and FPC happily read all three line endings.
But when you write code on Linux, Linux line
endings will be created.

This means you can share read-only sources, but the sources you edit
on Linux and Windows should *not* be shared via a samba share.
Checkout cvs/svn/git for each platform and let the version control
system do the conversion for you.

Mattias




More information about the Lazarus mailing list