Replace std::filesystem::u8path with TODO

This commit is contained in:
Megamouse 2023-01-31 19:45:33 +01:00
parent bcb1c6c080
commit 68dd25a4a5
1 changed files with 9 additions and 1 deletions

View File

@ -815,7 +815,15 @@ bool package_reader::fill_data(std::map<std::string, install_entry*>& all_instal
}
default:
{
const std::string true_path = std::filesystem::weakly_canonical(std::filesystem::u8path(path)).string();
// TODO: check for valid utf8 characters
const std::string true_path = std::filesystem::weakly_canonical(path).string();
if (true_path.empty())
{
num_failures++;
pkg_log.error("Failed to get weakly_canonical path for '%s'", path);
break;
}
auto map_ptr = &*all_install_entries.try_emplace(true_path).first;
m_install_entries.push_back({