VSS 6: Append_EOL not working

Hello,

I have been using Vss for more than 8 years now, and have had a specific request from my colleagues who are using a compiler for embedded devices that requires file to end up with a CR/LF.

I have seen in Vss documentation that there is a specific option for this which is Append_EOL. I have therefore initialized that variable to yes in the srcsafe.ini of the database, the option is well propagated to each client (the relevant box appears as checked in the clients).

My problem is that it seems to have no effect at all. I have created a dummy text file (with a txt extension) which no CR/LF at the end (and double checked with an hexa editor), stored it my database, and tried to retrieve it. But the file retrieved is the same, it stills does have any CR/LF at the end.

I did many tests (delete the local file before retrieve it, use Get LatestVersion or check, configure the option from the client and not from the srcsafe.ini, checked it was really treated as a text file and not a binary file, use several Vss clients version 6.0d 9848, original 6.0), but same result each time.

Please help!

Thks,

Frederic.



Answer this question

VSS 6: Append_EOL not working

  • susan_newyork

    Hi Frederic,

    It seems to me the Append_EOL variable was broken for a long time.

    In VSS6, the code tries to append an end of line to a file that's not end-of-line-terminated when Append_EOL is set and another variable, EOL, is set to a value other than default (EOL=rn to append CR/LF pairs). I don't know if this was by design or just a bug, in any case it's different from what the documentation of the Append_EOL flag says. Anway, because of another bug, the Append_EOL is not honored not even when EOL=n or EOL=r...

    None of these bugs have been fixed in VSS2005. In addition, EOL variable doesn't apply for Unicode and Utf-8 files (if I remember correctly).

    If you really need this feature working for VSS6 you'll have to call Product support and request a QFE.

    Alin


  • Artashes

    Hi Alin,

    Thanks for your feedback. Do you know if this feature worked in a previous version

    Frederic.


  • TheMax

    Hi Frederic,

    Looking at the code, it seems to me the Append_EOL variable could have worked in VSS5.0 (back in 1996).

    However, since VSS6.0 Beta1 (around October 97) I see the current behavior, when the variable is honored only when EOL is also defined (but hitting the second bug).

    Alin


  • VSS 6: Append_EOL not working