aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-12-01 09:29:16 +0100
committerMartin Ridgers <[email protected]>2021-12-02 11:35:46 +0100
commitb6a4f042e91f564ad7a3dd999c2df855e669232a (patch)
tree8e4112897a783d5dc041676a871401b726dacc1b
parentUpdated RunCommand's file traversal to use platform-agnostic strings (diff)
downloadzen-b6a4f042e91f564ad7a3dd999c2df855e669232a.tar.xz
zen-b6a4f042e91f564ad7a3dd999c2df855e669232a.zip
Use zen::PathToUtf8() instead of WideToUtf8()
-rw-r--r--zen/cmds/run.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/cmds/run.cpp b/zen/cmds/run.cpp
index a5a372210..0fde4648a 100644
--- a/zen/cmds/run.cpp
+++ b/zen/cmds/run.cpp
@@ -129,7 +129,7 @@ RunCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
for (const auto& Kv : Visit.m_Files)
{
PrepReq.BeginObject();
- PrepReq << "file" << zen::WideToUtf8(Kv.first) << "size" << Kv.second.Size << "hash" << Kv.second.Hash;
+ PrepReq << "file" << zen::PathToUtf8(Kv.first) << "size" << Kv.second.Size << "hash" << Kv.second.Hash;
PrepReq.EndObject();
}
PrepReq.EndArray();