**This repository is abandoned and looking for a maintainer.** A tool to visualize OSI data from two different sources. Data can be stored in files and replayed afterwards, or validated using a Python interface.
Building and executing osi-visualizer for Windows I got a strange error message, "Wrong file format", when trying to open *.osi files, even though the file is correct.
The problem is in the fopen function call. "r" seems to work fine on Linux platform, but on Windows reading of messages will fail with error message "Wrong file format" as a result. Probably Windows assumes ASCII format and reads only part of messages, for some reason.
Debug analysis: fread returns a number less than the message size, leading to another read operation wich then returns 0.
Changing mode to "rb" fixes the problem.
Check the checklist
[x ] I have performed a self-review of my own code.
[ ] I have made corresponding changes to the documentation.
[x ] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] New and existing unit tests / travis ci pass locally with my changes.
Building and executing osi-visualizer for Windows I got a strange error message, "Wrong file format", when trying to open *.osi files, even though the file is correct.
The problem is in the fopen function call. "r" seems to work fine on Linux platform, but on Windows reading of messages will fail with error message "Wrong file format" as a result. Probably Windows assumes ASCII format and reads only part of messages, for some reason.
Debug analysis: fread returns a number less than the message size, leading to another read operation wich then returns 0.
Changing mode to "rb" fixes the problem.
Check the checklist