FIX: File Corruption Occurs When Shadowed
ID: Q200979
|
The information in this article applies to:
-
Microsoft Visual SourceSafe, 32-bit, for Windows versions 4.0, 4.0a, 5.0, 6.0
SYMPTOMS
File(s) in the shadow folder are corrupted.
CAUSE
A carriage return in the file(s) are added only as a carriage return, rather than as a carriage return and line feed pairs.
This happens when a shadow directory is set for a project and the
shadowed files are viewed before they are checked out and checked backed into Visual SourceSafe (VSS).
RESOLUTION
Checking the file(s) out, and then checking them back in should
resolve this problem once it has occurred.
STATUS
Microsoft has confirmed this to be a bug in Visual SourceSafe 4.0, 4.0a, and 5.0. This bug has been corrected in Visual SourceSafe 6.0.
MORE INFORMATION
Steps to Reproduce Behavior
- Create a new .txt file with a few lines of text separated by carriage returns.
- Create a new project in the VSS Explorer.
- Set a working folder for the project.
- Add a file to the project.
- Close VSS Explorer.
- Run VSS Administrator.
- Select Tools->Options->Shadow Folders tab.
- Select BROWSE beside the "Set shadow folder for project:" edit box and select the project created in Step 2.
- Click BROWSE beside the "Set shadow folder to:" edit box to select the location for the Shadow Folder.
- Add "\test" to the end of the path in the "Name:" edit box.
- Click OK.
- Click Yes when prompted to create the new folder.
- In the options dialog box set "File Date/Time" to 'Check-In'.
- Click OK.
- Close VSS Administrator.
- Open the file in the shadow folder with a text editor. You can see an undefined character where a carriage return and line feed should be.
REFERENCES
Q138344 HOWTO: Set up a Shadow Dir in Visual SourceSafe Administrator
Additional query words:
kbDSupport
Keywords : kbSSafe400bug kbSSafe500bug kbSSafe600fix kbDSupport
Version : WINDOWS:4.0,4.0a,5.0,6.0
Platform : WINDOWS
Issue type : kbbug