Commit ebf6b26f authored by Sylvain Thery's avatar Sylvain Thery

ply read modification for french locale problem

parent 66a2f45a
......@@ -115,6 +115,8 @@ protected:
int per_vertex_color;
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
{
......@@ -60,6 +61,8 @@ PlyImportData::PlyImportData():
per_vertex_color(0),
has_normals(0)
{
old_locale = setlocale(LC_NUMERIC, NULL);
setlocale(LC_NUMERIC, "C");
}
PlyImportData::~PlyImportData()
......@@ -85,6 +88,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