diff options
author | Saturneric <[email protected]> | 2022-03-19 06:17:43 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-03-19 06:17:43 +0000 |
commit | 1c779300f8b2bcf0c3cde206d2967654a12df481 (patch) | |
tree | 5de981083a275e2474e6fa12b4649cdbbfd7e16f | |
parent | <fix>(ci): Completely remove gcc related configuration in macOS compilation (diff) | |
download | GpgFrontend-1c779300f8b2bcf0c3cde206d2967654a12df481.tar.gz GpgFrontend-1c779300f8b2bcf0c3cde206d2967654a12df481.zip |
<fix>(core): Fix the path compatibility problem of loading certificates under Windows.
-rw-r--r-- | src/core/function/GlobalSettingStation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/function/GlobalSettingStation.cpp b/src/core/function/GlobalSettingStation.cpp index 43b5b884..8850cbe4 100644 --- a/src/core/function/GlobalSettingStation.cpp +++ b/src/core/function/GlobalSettingStation.cpp @@ -98,7 +98,7 @@ GpgFrontend::GlobalSettingStation::GlobalSettingStation(int channel) noexcept void GpgFrontend::GlobalSettingStation::AddRootCert( const std::filesystem::path &path) { 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; return; } |