From 93309f31ec7ed0dafc48868a980ecdf265054725 Mon Sep 17 00:00:00 2001 From: ahcorde Date: Wed, 4 Nov 2020 14:15:03 +0100 Subject: [PATCH] Set LC_NUMERIC=C to avoid issues reading files Signed-off-by: ahcorde --- graphics/include/ignition/common/MeshLoader.hh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graphics/include/ignition/common/MeshLoader.hh b/graphics/include/ignition/common/MeshLoader.hh index 4a7dd4a59..fedb3cc3a 100644 --- a/graphics/include/ignition/common/MeshLoader.hh +++ b/graphics/include/ignition/common/MeshLoader.hh @@ -17,6 +17,7 @@ #ifndef IGNITION_COMMON_MESHLOADER_HH_ #define IGNITION_COMMON_MESHLOADER_HH_ +#include #include #include @@ -32,7 +33,9 @@ namespace ignition class IGNITION_COMMON_GRAPHICS_VISIBLE MeshLoader { /// \brief Constructor - public: MeshLoader() = default; + public: MeshLoader() { + std::setlocale(LC_NUMERIC, "C"); + } /// \brief Destructor public: virtual ~MeshLoader() = default;