[p4] P4, newline, Windows and Unix

Blum, Robert rblum at midwaygames.com
Tue Oct 31 08:45:58 PST 2000


Hi all!

We recently started using perforce, and have one major problem:

Part of our development happens on *nix machines, while our developers
happily live on Windows machines. Files get modified using both
environments, but P4 is usually used through the GUI. This leads to the
whole newline problem. 

If we modify a file in Windows, or even do a p4 edit from windows, every
line gets a ^M appended. So far, so good. Now when we do some editing under
Unix, we usually remove all the ^M characters and are fine. However, the GUI
client (especially diff) does not like that at all - it shows the whole file
to be different, even though nothing changed.

Is there any way to force diff under Windows to ignore changes to the
end-of-line character?

Thanks,
  Robert

Here come the disclaimers (life on the internet isn't fun any more!):

Please be aware that messages sent over the Internet may not be secure and
should not be seen as forming a legally binding contract unless otherwise
stated.






More information about the perforce-user mailing list