Commit 64fa7f53 authored by unknown's avatar unknown
Browse files

Merge cgogn:CGoGN

parents 8dc3b275 ebf6b26f
...@@ -121,6 +121,8 @@ protected: ...@@ -121,6 +121,8 @@ protected:
int per_vertex_color_float32, per_vertex_color_uint8 ; int per_vertex_color_float32, per_vertex_color_uint8 ;
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
{ {
...@@ -64,6 +65,8 @@ PlyImportData::PlyImportData(): ...@@ -64,6 +65,8 @@ PlyImportData::PlyImportData():
per_vertex_color_uint8(0), per_vertex_color_uint8(0),
has_normals(0) has_normals(0)
{ {
old_locale = setlocale(LC_NUMERIC, NULL);
setlocale(LC_NUMERIC, "C");
} }
PlyImportData::~PlyImportData() PlyImportData::~PlyImportData()
...@@ -89,6 +92,7 @@ PlyImportData::~PlyImportData() ...@@ -89,6 +92,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