From 50d3f067f7acb4ee60df0e2f4887f94affb9baa1 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 17 Nov 2009 09:29:22 +0000 Subject: [PATCH] Localization --- src/StdMeshers/StdMeshers_NumberOfSegments.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/StdMeshers/StdMeshers_NumberOfSegments.cxx b/src/StdMeshers/StdMeshers_NumberOfSegments.cxx index e92da792e..ce4876ee3 100644 --- a/src/StdMeshers/StdMeshers_NumberOfSegments.cxx +++ b/src/StdMeshers/StdMeshers_NumberOfSegments.cxx @@ -49,6 +49,8 @@ #include #endif +#include + using namespace std; const double PRECISION = 1e-7; @@ -321,9 +323,7 @@ bool process( const TCollection_AsciiString& str, int convMode, bool& non_neg, bool& non_zero, bool& singulars, double& sing_point ) { - // Set "C" numeric locale to save numbers correctly - std::string aCurLocale = setlocale(LC_NUMERIC, 0); - setlocale(LC_NUMERIC, "C"); + Kernel_Utils::Localizer loc; bool parsed_ok = true; Handle( ExprIntrp_GenExp ) myExpr; @@ -377,9 +377,6 @@ bool process( const TCollection_AsciiString& str, int convMode, } } - // Return previous locale - setlocale(LC_NUMERIC, aCurLocale.data()); - return res && non_neg && non_zero && ( !singulars ); } -- 2.30.2