Commit 2e2ac038 authored by untereiner's avatar untereiner

Merge cgogn:~thery/CGoGN

parents c635365a ebf6b26f
......@@ -121,6 +121,8 @@ protected:
int per_vertex_color_float32, per_vertex_color_uint8 ;
int has_normals;
char *old_locale;
};
} // namespace CGoGN
......
......@@ -25,6 +25,7 @@
#include "Utils/os_spec.h"
#include "Algo/Import/importPlyData.h"
#include <stdlib.h>
#include <locale.h>
namespace CGoGN
{
......@@ -64,6 +65,8 @@ PlyImportData::PlyImportData():
per_vertex_color_uint8(0),
has_normals(0)
{
old_locale = setlocale(LC_NUMERIC, NULL);
setlocale(LC_NUMERIC, "C");
}
PlyImportData::~PlyImportData()
......@@ -89,6 +92,7 @@ PlyImportData::~PlyImportData()
// }
// 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