cotonti.com : CR/LF in source files https://www.cotonti.com Neueste Themenbeiträge Cotonti en Sun, 29 Mar 2026 10:30:27 -0000 Kilandor Mi, 10 Sep 2008 13:46:41 -0000 Orkan
We have several "readable" file types like: php, sql, txt, js, and so on...
And what with newly added files?

I tested this either by Update and Check Out on my WinXP, and must say that I still have UNIX files in my working copy.]]>
Mi, 10 Sep 2008 04:51:59 -0000
Kilandor
But I did some research and there is a SVN setting svn:eol-style

Which I found you can force line endings, but it can be set to native, that way when checked out, win users get it as CRLF, nix users get it as LF, it checks out based on your OS your checking out from on Commit it stores all line endings as LF

I'll see about setting this, then no one will have any problems, or have to fool with it.

Update: I've enabled this but haven't tried it. Differnet people checkout the SVN and try it out. Tell your OS and what you find. (I don't know if you can just Update and it will work, or if you have to do a new checkout.)]]>
Di, 09 Sep 2008 15:34:45 -0000
Orkan # Kilandor : Other then that there no issues? If so just fix it as you work if you find problems, other than that we can fix it for releases.

I disagree.
The SVN "compare" command will be fooled b/c it works "per line".

And what, if making some changes in file A, I would like to see file B, but then file B needs to be converted to UNIX format, so the Commit will contain two files - instead of just one which was really modified.]]>
Mo, 08 Sep 2008 22:40:57 -0000
oc http://www.unicode.org/faq/utf_bom.html#23

I believe, as Kilandor, this is a editor based problem.]]>
Mo, 08 Sep 2008 21:26:05 -0000
Trustmaster Mo, 08 Sep 2008 19:22:21 -0000 Kilandor
Other then that there no issues? If so just fix it as you work if you find problems, other than that we can fix it for releases.

Most modern editors I think you can set the style, I know for Notepad++ I can, which i'll set it to unix.

Another question, we using UTF8, with or without BOM]]>
Mo, 08 Sep 2008 15:38:16 -0000
Orkan I hope that is clear enough to everyone :)]]> So, 07 Sep 2008 22:40:16 -0000 Trustmaster Coding Style
Coding Style:
Ensure that your editor is saving files in the UNIX format. This means lines are terminated with a newline, not with a CR/LF combo as they are on Win32, or whatever the Mac uses. Any decent editor should be able to do this, but it might not always be the default. Know your editor. If you want advice on Windows text editors, just ask one of the developers. Some of them do their editing on Win32.

What else can I do?]]>
So, 07 Sep 2008 19:55:15 -0000
Orkan
I agree, right now its all messed up.]]>
Sa, 06 Sep 2008 23:58:35 -0000
Trustmaster
Well, I can do bulk CR strip. But it doesn't guarantee CRs are not inserted there again later by somebody.]]>
Sa, 06 Sep 2008 17:12:07 -0000
Orkan
The file type is set to UNIX but CR/LF line breaks did not get replaced by UNIX line feeds.
Trustmaster, the software you are using its not good for that job, IMO.
For example, EditPlus do this conversion automatically when you set the file type to UNIX - apparently your soft cant do that.

http://img225.imageshack.us/img225/3595/bugunixcrlf01hh3.png
http://img225.imageshack.us/img225/1342/bugunixcrlf02ma8.png]]>
Sa, 06 Sep 2008 07:33:34 -0000