Skip to content

Commit

Permalink
Set LC_NUMERIC=C to avoid issues reading files
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde committed Nov 4, 2020
1 parent 0d44a6e commit 93309f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion graphics/include/ignition/common/MeshLoader.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#ifndef IGNITION_COMMON_MESHLOADER_HH_
#define IGNITION_COMMON_MESHLOADER_HH_

#include <clocale>
#include <string>

#include <ignition/common/graphics/Export.hh>
Expand All @@ -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;
Expand Down

0 comments on commit 93309f3

Please sign in to comment.