Skip to content

Commit 93309f3

Browse files
committed
Set LC_NUMERIC=C to avoid issues reading files
Signed-off-by: ahcorde <[email protected]>
1 parent 0d44a6e commit 93309f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graphics/include/ignition/common/MeshLoader.hh

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#ifndef IGNITION_COMMON_MESHLOADER_HH_
1818
#define IGNITION_COMMON_MESHLOADER_HH_
1919

20+
#include <clocale>
2021
#include <string>
2122

2223
#include <ignition/common/graphics/Export.hh>
@@ -32,7 +33,9 @@ namespace ignition
3233
class IGNITION_COMMON_GRAPHICS_VISIBLE MeshLoader
3334
{
3435
/// \brief Constructor
35-
public: MeshLoader() = default;
36+
public: MeshLoader() {
37+
std::setlocale(LC_NUMERIC, "C");
38+
}
3639

3740
/// \brief Destructor
3841
public: virtual ~MeshLoader() = default;

0 commit comments

Comments
 (0)