8 messages in com.perforce.perforce-userSome questions| From | Sent On | Attachments |
|---|---|---|
| Scot...@home.chat.net | 17 Oct 1997 16:24 | |
| Nave...@vinayak.engr.sgi.com | 17 Oct 1997 17:11 | |
| Ping...@mit.edu | 17 Oct 1997 20:00 | |
| WesP...@xmission.com | 17 Oct 1997 21:49 | |
| Paul...@radstone.co.uk | 20 Oct 1997 01:31 | |
| fred...@mydata.sefredric.fredriksson | 20 Oct 1997 02:30 | |
| WesP...@xmission.com | 23 Oct 1997 21:56 | |
| WesP...@xmission.com | 23 Oct 1997 22:10 |
| Subject: | Some questions![]() |
|---|---|
| From: | Ping...@mit.edu (Ping...@mit.edu) |
| Date: | 10/17/1997 08:00:27 PM |
| List: | com.perforce.perforce-user |
Naveen Patil <naveen at vinayak.engr.sgi.com> wrote:
1) I was thinking about the the LF vs. CR-LF difference between DOS and UNIX and wanted to know how Perforce deals with this for text documentation that would exist on both types of clients.
As long as you edit the file and submit it from the same platform, you should be fine ...
More specifically: If you check in a text file from a Perforce client running on an OS that uses MS-DOS end-of-line conventions (MS-DOS, Windows 9x, NT), Perforce understands that CR-LF should be interpreted as EOL; if you check in a text file from an Unix Perforce client, Perforce understands that LF should be interpreted as EOL. When you then check out the file using a different Perforce client, you will get whatever is the correct EOL convention for that Perforce client's OS. I.e., Perforce does the right thing.
[I only have experience with NT and Unix Perforce clients; I assume that "Perforce does the right thing" also applies to Macintosh clients. (Macintoshes use just CR for EOL?)]
You'll get the "wrong" results only when you do something like create and edit a text file on one system, then binary copy the file to another system which uses a different EOL convention, and then proceed to check that into Perforce as a text file. E.g., if you create a text file on NT, FTP it to a Unix system, and check it in from the Unix system, then when you check it out on an NT system, you get CR-CR-LF at the end of each line, and when you check it out on an Unix system, you get CR-LF at the end of each line.
--- Ping Huang <pshuang at mit.edu>; more info: http://web.mit.edu/pshuang/.plan Disclaimer: unless explicitly otherwise stated, my statements represent my personal viewpoints only.




