mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 08:17:55 +00:00
Log: set locale for data output
This commit is contained in:
parent
10978c59e4
commit
8619057224
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <clocale>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable : 4996)
|
#pragma warning(disable : 4996)
|
||||||
|
@ -63,6 +64,8 @@ public:
|
||||||
{
|
{
|
||||||
set_main_thread();
|
set_main_thread();
|
||||||
|
|
||||||
|
std::setlocale(LC_ALL, "en_001");
|
||||||
|
|
||||||
m_logFile.open(log_file_name, std::ios::app | std::ios::binary);
|
m_logFile.open(log_file_name, std::ios::app | std::ios::binary);
|
||||||
|
|
||||||
m_buf.resize(BUF_SIZE);
|
m_buf.resize(BUF_SIZE);
|
||||||
|
|
Loading…
Reference in a new issue