Perforce changed line endings?

This doesn't have anything to do with perforce really, although it does handle the problem kb.perforce.com/article/63 Line endings on UNIX, PC and Mac machines are all different This is what your seeing. Transferring the same file between PC and Mac over any medium would have the same results. You can probably set your editor on the Mac to save the file with windows line endings if you want to get around this another way I was wrong "Perforce processes all text files using Unix-style LF line-endings".

I'd check p4 client LineEnd value (should be local on both machines I think) and ensure you're using a version of p4 >= 2001.1.

This doesn't have anything to do with perforce really, although it does handle the problem. kb.perforce.com/article/63 Line endings on UNIX, PC and Mac machines are all different. This is what your seeing.

Transferring the same file between PC and Mac over any medium would have the same results. You can probably set your editor on the Mac to save the file with windows line endings if you want to get around this another way. I was wrong "Perforce processes all text files using Unix-style LF line-endings".

I'd check p4 client LineEnd value (should be local on both machines I think) and ensure you're using a version of p4 >= 2001.1.

It has to do with perforce, I just edited 10-20 files on MAC to make a multiplatform project to compile. The rest of 140k files were not changed and not even opened on Mac(they were opened by compiler to compile them:P). If I copy the project on PC the line endings are ok.

– Felics Apr 14 at 13:59 Yeah, sorry. Just read "Perforce processes all text files using Unix-style LF line-endings. " Are you using a perforce version > 2001.1?

Have you checked to see what your p4 client "LineEnd" value is? – olan Apr 14 at 14:06.

Line endings for text files are controlled by your client spec setting. You need to make sure that your client's 'LineEnd' value is set properly. In general, this should be left to 'local' which should do the right thing for whatever operating system you are using.

That said, depending on how this value was set on your Mac when you originally uploaded the files, I suppose that there could possibly be some problem when syncing those files to your PC. I would check to make sure that LineEnd is set to 'local' for your clients. There is a note on the Perforce Knowledge Base site here that talks more in depth about proper settings for Macintosh clients.

That might be a place to start as well to make sure that you have things properly configured on your Macintosh.

I had a project on Mac and uploaded it to a perforce server. When I got the project from PC all the line endings were changed and now it does not compile on PC. Is there a way to automatically change the line endings like they were before or I must submit again all the project from Windows?

Is there any way to make perforce to keep my files AS THEY ARE? I really don't want to have stupid modifications in my source files. It has to do with perforce, I just edited 10-20 files on MAC to make a multiplatform project to compile.

The rest of 140k files were not changed and not even opened on Mac(they were opened by compiler to compile them:P). If I copy the project on PC the line endings are ok.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions