换用库。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user