INFO: End of Line Character Settings for SourceSafeLast reviewed: July 1, 1997Article ID: Q170750 |
The information in this article applies to:
SUMMARYThe MS-DOS (including WINDOWS), UNIX, and Macintosh operating systems all use different characters to designate the end of a line within a text file.
SourceSafe is designed this way so that UNIX, Macintosh, and PC users can all check the same files in and out and always see the file displayed correctly.
MORE INFORMATIONVisual SourceSafe translates the CR/LF characters into the appropriate EOL character when you get or check out a file. It changes the EOL character back into a CR/LF combination when you check the file back in. It's important to notice that in this one instance, SourceSafe alters the contents of your text file. While this type of change is necessary for text files, it would cause unpredictable results for binary files. Therefore, this operation is never performed on a binary file. You can change this default behavior by adding the EOL switch in the user's Ss.ini file. You can set the EOL variable to either an "r" (Carriage Return), "n" (Line Feed), or "rn" (Carriage Return/Line Feed). For example:
EOL = nThis forces SourceSafe to translate the CR/LF combination into a line feed when you get or check out a file. You can also accomplish this by using the -g switch from the command line. The syntax is as follows:
ss Get -g(EOL) where EOL can be r, n, or rnFor Example:
ss Get -gr <Filename>This forces SourceSafe to translate the CR/LF combination into a carriage return when you get or check out a file. |
Keywords : ssconfig
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |