Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-12

Line Endings

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Benito van der Zander
Regarding hg, did you remove the "working copies" (hg up null) and restored later or not?

No, but I'm not sure if that would help, since the files in the repository are crlf, so a re-update will probably not change anything (i don't want to try it, as long as
i have uncommited local changes)

Okay, but I would prefer to have crlf locally, since I also do packaging on this system, and there are more unix programs which understand crlf than windows programs which understand cr. (and btw I'm using mercurial, not svn)

Show quoted text 5 lines
Yes, that is misuse of AnsiUtf8, the documentation warns about that: http://lazarus-ccr.sourceforge.net/docs/rtl/system/ansitoutf8.html I don't know what would be a better place to warn about it.

Well a google search for ansitoutf8 shows only this page, where it isn't mentioned:
http://www.freepascal.org/docs-html/rtl/system/ansitoutf8.html

Benito van der Zander

Reply by email

Vincent Snijders
to Benito van der Zander
Benito van der Zander wrote 7 lines
> Use svn:lineending is native, see for example: > http://www.zope.org/DevHome/Subversion/SubversionConfigurationForLineEndings > > Okay, but I would prefer to have crlf locally, since I also do packaging on this system, and there are more unix programs which understand crlf than windows programs which understand cr.

You could force it:
svn:lineending CRLF.

Yes, this is SVN, I don't use HG yet, because of issues like these.

Show quoted text 8 lines
> Yes, that is misuse of AnsiUtf8, the documentation warns about that: > http://lazarus-ccr.sourceforge.net/docs/rtl/system/ansitoutf8.html > > I don't know what would be a better place to warn about it. > Well a google search for ansitoutf8 shows only this page, where it isn't mentioned: http://www.freepascal.org/docs-html/rtl/system/ansitoutf8.html

I hope these docs will be updated (regenerated) after the fpc 2.4.0 release.

I cannot help that google doesn't index the up to date docs.

Vincent

Reply by email

Luca Olivetti
to Benito van der Zander: No, but I'm not sure if that would help, since the files in the repository are crlf, so a…

En/na Benito van der Zander ha escrit:

Show quoted text 8 lines
> Regarding hg, did you remove the "working copies" (hg up null) and > restored later or not? > No, but I'm not sure if that would help, since the files in the repository are crlf, so a re-update will probably not change anything (i don't want to try it, as long as i have uncommited local changes)

Mmh, that's bad, anyway I use this in my mercurial.ini under windows:

[extensions]
hgext.win32text=
[encode]
**.pas = dumbencode:
**.pp = dumbencode:
**.lpr = dumbencode:
**.lfm = dumbencode:
**.lpi = dumbencode:
**.lpk = dumbencode:
**.inc = dumbencode:
**.txt = dumbencode:
**.dof = dumbencode:
**.dpr = dumbencode:
[decode]
**.pas = dumbdecode:
**.pp = dumbdecode:
**.lpr = dumbdecode:
**.lfm = dumbdecode:
**.lpi = dumbdecode:
**.lpk = dumbdecode:
**.inc = dumbdecode:
**.txt = dumbdecode:
**.dof = dumbdecode:
**.dpr = dumbdecode:

But that keeps files in the repository with unix line ending, it just converts from/to crlf under windows.

Bye

Luca Olivetti Wetron Automatizaci?n S.A. http://www.wetron.es/ Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007

Reply by email