X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FDriverUNV%2FUNV_Utilities.hxx;h=5e9239f82a37bd0f062b84f0f2509d2858e6aa2b;hp=e53f75d95da120a9dd3cff3c5cb87e9117a0e313;hb=ad1014d43c55f9fbdf7a6a051bf6d3c0e77eef6f;hpb=bfe976c58ed988d01b2dd04a5d8cbcd834b68c45 diff --git a/src/DriverUNV/UNV_Utilities.hxx b/src/DriverUNV/UNV_Utilities.hxx index e53f75d95..5e9239f82 100644 --- a/src/DriverUNV/UNV_Utilities.hxx +++ b/src/DriverUNV/UNV_Utilities.hxx @@ -35,6 +35,22 @@ namespace UNV{ using namespace std; + class MESHDRIVERUNV_EXPORT Localizer + { + public: + Localizer() + { + myCurLocale = setlocale(LC_NUMERIC, 0); + setlocale(LC_NUMERIC, "C"); + } + ~Localizer() + { + setlocale(LC_NUMERIC, myCurLocale.c_str()); + } + private: + std::string myCurLocale; + }; + class MESHDRIVERUNV_EXPORT PrefixPrinter{ static int myCounter; public: