Commit e02d04adea802ae319e317b4529d6a659edadeac

Authored by Jürgen Knödlseder
1 parent 5490e2e0

Set local language to English (#1370)

Showing 1 changed file with 5 additions and 1 deletions
src/support/ctool.cpp
1 /*************************************************************************** 1 /***************************************************************************
2 * ctool - ctool base class * 2 * ctool - ctool base class *
3 * ----------------------------------------------------------------------- * 3 * ----------------------------------------------------------------------- *
4 - * copyright (C) 2014-2016 by Juergen Knoedlseder * 4 + * copyright (C) 2014-2017 by Juergen Knoedlseder *
5 * ----------------------------------------------------------------------- * 5 * ----------------------------------------------------------------------- *
6 * * 6 * *
7 * This program is free software: you can redistribute it and/or modify * 7 * This program is free software: you can redistribute it and/or modify *
@@ -30,6 +30,7 @@ @@ -30,6 +30,7 @@
30 #endif 30 #endif
31 #include <cstdlib> // std::getenv() function 31 #include <cstdlib> // std::getenv() function
32 #include <cstdio> // std::fopen(), etc. functions 32 #include <cstdio> // std::fopen(), etc. functions
  33 +#include <clocale> // std::setlocale function
33 #include "ctool.hpp" 34 #include "ctool.hpp"
34 #include "GTools.hpp" 35 #include "GTools.hpp"
35 36
@@ -257,6 +258,9 @@ void ctool::init_members(void) @@ -257,6 +258,9 @@ void ctool::init_members(void)
257 // Set logger properties 258 // Set logger properties
258 log.date(true); 259 log.date(true);
259 260
  261 + // Set language to english to make sure that a dot is a dot
  262 + std::setlocale(LC_ALL, "en_US.UTF-8");
  263 +
260 // Return 264 // Return
261 return; 265 return;
262 } 266 }