CMAKE_CURRENT_LIST_DIR contains incorrect string when foldername contains diacritics
Hello,
Let's say I have my source codes in a folder named "ě+ščěšřřžýýáí". I'd expect CMake to read it correctly, as it uses UTF-8 encoding as a default.
The problems is, the variable then contains something like "Ä›+ščěšřřžýýáĂ", i.e. obviously incorrectly read string.
Is there any way to deal with this? Currently I'm dealing with new colleagues, who like to name their folder with diacritics and it's causing me real problems.
If it's not possible to read it correctly, is there any way to, at least, detect non-ASCII characters, so I could throw an error message?
Thank you very much.
Best regards, Martin