Although Visual Studio should recognize and correctly parse text files created in UNIX (with lines ending in only '\n' and not '\r\n'), this is not the case.If the user is not aware of this issue, saving and restoring position pointers (like the ones used by "fgetpos/fsetpos" and "ftell/fseek") can irreversibly corrupt the contents of such files.Bellow is a simple source code and two example files demonstrating this issue.(Also sent as an attachment to this bug report.)
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...