Open jrgfogh opened 5 months ago
I don't know what's going on with your files, but I cloned your repository, checked out commit 909a477e92cf955ba24bd2b062f45e32c67f9644
and inspected each header/source file with a hex editor, and I couldn't find any 0xff
bytes in ./tests/propagate_const_tests.cpp
or any of the other header/source files. Without inspecting them any further, I would say the files are most likely valid and that's why your editors have no troubles with them.
While invalid UTF-8 is detectable, it isn't really something that can be corrected automatically, and you do want your source code to be interpreted correctly. A fatal error is therefore a desired behavior.
Unfortunately this issue isn't actionable from my point of view.
My build fails because my source code contains invalid unicode start bytes. I don't know how the files got corrupted, but it seems like the kind of thing you would want a lint tool to fix, since my editors have no trouble reading the files.
Here is an example error message:
The failing code can be found here: https://github.com/jrgfogh/small_wrappers/tree/909a477e92cf955ba24bd2b062f45e32c67f9644