DaemonCommand#Run(): set code page to UTF-8

refs #7110
This commit is contained in:
Alexander A. Klimov 2019-07-19 17:58:56 +02:00
parent e9f61ef234
commit d7e52824c8
1 changed files with 7 additions and 1 deletions

View File

@ -24,7 +24,9 @@
#include <iostream>
#include <fstream>
#ifndef _WIN32
#ifdef _WIN32
#include <windows.h>
#else /* _WIN32 */
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
@ -539,6 +541,10 @@ public:
*/
int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::string>& ap) const
{
#ifdef _WIN32
SetConsoleOutputCP(65001);
#endif /* _WIN32 */
Logger::EnableTimestamp();
Log(LogInformation, "cli")