mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
Merge pull request #7346 from Icinga/feature/check-plugins-code-page-7110
DaemonCommand#Run(): set code page to UTF-8
This commit is contained in:
commit
9d6ee44e71
@ -24,7 +24,9 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifdef _WIN32
|
||||||
|
#include <windows.h>
|
||||||
|
#else /* _WIN32 */
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
@ -550,6 +552,10 @@ public:
|
|||||||
*/
|
*/
|
||||||
int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::string>& ap) const
|
int DaemonCommand::Run(const po::variables_map& vm, const std::vector<std::string>& ap) const
|
||||||
{
|
{
|
||||||
|
#ifdef _WIN32
|
||||||
|
SetConsoleOutputCP(65001);
|
||||||
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
Logger::EnableTimestamp();
|
Logger::EnableTimestamp();
|
||||||
|
|
||||||
Log(LogInformation, "cli")
|
Log(LogInformation, "cli")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user