Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit ebf6b26f authored by Sylvain Thery's avatar Sylvain Thery
Browse files

ply read modification for french locale problem

parent 66a2f45a
...@@ -115,6 +115,8 @@ protected: ...@@ -115,6 +115,8 @@ protected:
int per_vertex_color; int per_vertex_color;
int has_normals; int has_normals;
char *old_locale;
}; };
} // namespace CGoGN } // namespace CGoGN
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include "Utils/os_spec.h" #include "Utils/os_spec.h"
#include "Algo/Import/importPlyData.h" #include "Algo/Import/importPlyData.h"
#include <stdlib.h> #include <stdlib.h>
#include <locale.h>
namespace CGoGN namespace CGoGN
{ {
...@@ -60,6 +61,8 @@ PlyImportData::PlyImportData(): ...@@ -60,6 +61,8 @@ PlyImportData::PlyImportData():
per_vertex_color(0), per_vertex_color(0),
has_normals(0) has_normals(0)
{ {
old_locale = setlocale(LC_NUMERIC, NULL);
setlocale(LC_NUMERIC, "C");
} }
PlyImportData::~PlyImportData() PlyImportData::~PlyImportData()
...@@ -85,6 +88,7 @@ PlyImportData::~PlyImportData() ...@@ -85,6 +88,7 @@ PlyImportData::~PlyImportData()
// } // }
// need to free *vert_other,*face_other ???? // need to free *vert_other,*face_other ????
setlocale(LC_NUMERIC, old_locale);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment