1
0

<fix>(core): Fix the path compatibility problem of loading certificates under Windows.

This commit is contained in:
Saturneric 2022-03-19 14:17:43 +08:00
parent 3562cd4959
commit 1c779300f8

View File

@ -98,7 +98,7 @@ GpgFrontend::GlobalSettingStation::GlobalSettingStation(int channel) noexcept
void GpgFrontend::GlobalSettingStation::AddRootCert( void GpgFrontend::GlobalSettingStation::AddRootCert(
const std::filesystem::path &path) { const std::filesystem::path &path) {
std::string out_buffer; std::string out_buffer;
if (!FileOperator::ReadFileStd(path.u8string(), out_buffer)) { if (!FileOperator::ReadFileStd(path, out_buffer)) {
LOG(ERROR) << _("Failed to read root certificate file") << path; LOG(ERROR) << _("Failed to read root certificate file") << path;
return; return;
} }