Use result of setlocale() when sorting by locale.

This commit is contained in:
casey langen 2019-01-16 19:36:31 -08:00
parent 987e4d7c0f
commit 926b5bebea

View File

@ -107,7 +107,10 @@ static void buildDirectoryList(
catch (...) {
}
std::sort(target.begin(), target.end(), std::locale(""));
std::sort(
target.begin(),
target.end(),
std::locale(setlocale(LC_ALL, nullptr)));
}
static std::string normalizePath(boost::filesystem::path path) {