Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Cazier
CGoGN
Commits
ebf6b26f
Commit
ebf6b26f
authored
May 09, 2012
by
Sylvain Thery
Browse files
ply read modification for french locale problem
parent
66a2f45a
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/Algo/Import/importPlyData.h
View file @
ebf6b26f
...
...
@@ -115,6 +115,8 @@ protected:
int
per_vertex_color
;
int
has_normals
;
char
*
old_locale
;
};
}
// namespace CGoGN
...
...
src/Algo/Import/importPlyData.cpp
View file @
ebf6b26f
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment