<fix>(core): Fix the path compatibility problem of loading certificates under Windows.
This commit is contained in:
parent
3562cd4959
commit
1c779300f8
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user