换用库。

This commit is contained in:
2026-04-28 16:06:36 +08:00
parent cef4d8c1de
commit e85b89e86a
4 changed files with 7 additions and 12 deletions

View File

@@ -7,13 +7,13 @@
#include <boost/asio/streambuf.hpp>
#include <boost/core/ignore_unused.hpp>
#include <boost/filesystem.hpp>
#include <boost/locale.hpp>
#include <boost/process.hpp>
#include <boost/process/start_dir.hpp>
#include <boost/system/error_code.hpp>
#include <fmt/format.h>
#include <iostream>
#include <string>
#include <zoost/zoost.h>
namespace proc = boost::process;
namespace asio = boost::asio;
@@ -51,7 +51,7 @@ int ExecCMD::ExecuteCmd(const std::string& exe, std::vector<std::string>& args,
break;
} else {
#if defined(_WIN32)
std::cerr << boost::locale::conv::between(ec.message(), "UTF-8", "GBK") << std::endl;
std::cerr << zoostCommon::ToU8Copy(ec.message()) << std::endl;
#else
std::cerr << ec.message() << std::endl;
#endif
@@ -64,7 +64,7 @@ int ExecCMD::ExecuteCmd(const std::string& exe, std::vector<std::string>& args,
} catch (const std::exception& e) {
#if defined(_WIN32)
std::cerr << "异常: " << boost::locale::conv::between(e.what(), "UTF-8", "GBK") << std::endl;
std::cerr << "异常: " << zoostCommon::ToU8Copy(e.what()) << std::endl;
#else
std::cerr << e.what() << std::endl;
#endif