Closed lazyhamster closed 4 years ago
Probably related to issue #76. I plan to replace boost::filesystem
for the next release so this code will no longer be used.
Using boost::filesystem::path::imbue(std::locale());
will break the encoding for filenames with non-ASCII characters unless you have the windows code-page set to UTF-8 which is only possible with recent versions of Windows 10.
@dscharrer After googling, I found https://stackoverflow.com/questions/32272959/boostfilesystempathimbue-failed-with-default-stdlocale
@dscharrer Is it helpful?
This should be fixed with version 1.9.
Thanks for looking into this @ofry.
I've tried to build current master branch in Visual Studio 2017 but ran into problem. Newly built program crashes instantly. Looks like heap becomes corrupted.
Message from debugger:
After some code commenting I've found offending line in main function:
boost::filesystem::path::imbue(std::locale(std::locale(), &util::codecvt));
Commenting it or replacing with something simpler like
boost::filesystem::path::imbue(std::locale());
fixes the problem and program runs properly