diff options
| author | Matt Peters <[email protected]> | 2024-10-15 01:16:38 -0600 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-10-15 09:16:38 +0200 |
| commit | ff1456cea6778a78938fc1ce17e32575676e1c6d (patch) | |
| tree | da31a7a9fbcd8a88bdef6ad44ddec447b98cf304 /src | |
| parent | Dashboard: oplog entry data download, more detail, styling tweaks. (#194) (diff) | |
| download | zen-ff1456cea6778a78938fc1ce17e32575676e1c6d.tar.xz zen-ff1456cea6778a78938fc1ce17e32575676e1c6d.zip | |
Mirror command: fix utf8 paths mapping to native code page (#197)
* Mirror command: need to keep n unordered_set of filesystem::path rather than converting to string(), because string() does not work for unicode paths.
* Mirror: Store files in unordered_set as u8string rather than std::filesystem::path; std::filesystem::path does not support unordered_sest hashing on linux.
Diffstat (limited to 'src')
| -rw-r--r-- | src/zen/cmds/projectstore_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zen/cmds/projectstore_cmd.cpp b/src/zen/cmds/projectstore_cmd.cpp index b6d647457..0f10f2743 100644 --- a/src/zen/cmds/projectstore_cmd.cpp +++ b/src/zen/cmds/projectstore_cmd.cpp @@ -1756,7 +1756,7 @@ OplogMirrorCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** arg WorkerThreadPool WorkerPool(gsl::narrow<int>(WorkerCount)); Latch WorkRemaining(1); - std::unordered_set<std::string> FileNames; + std::unordered_set<std::u8string> FileNames; auto EmitFilesForDataArray = [&](CbArrayView DataArray) { for (auto DataIter : DataArray) @@ -1773,7 +1773,7 @@ OplogMirrorCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** arg { continue; } - if (!FileNames.insert(FileName.string()).second) + if (!FileNames.insert(FileName.u8string()).second) { continue; } |