#define VARIABLE_SEPARATOR ':'
#define OPERATION_SEPARATOR '|'
+// auxilary class intended to fix problems with locales
+class Localizer
+{
+public:
+ Localizer()
+ {
+ myCurLocale = setlocale(LC_NUMERIC, 0);
+ setlocale(LC_NUMERIC, "C");
+ }
+ ~Localizer()
+ {
+ setlocale(LC_NUMERIC, myCurLocale.c_str());
+ }
+private:
+ std::string myCurLocale;
+};
+
//============================================================================
/*! Function : SALOMEDSImpl_Study
* Purpose : SALOMEDSImpl_Study constructor
if(myNoteBookVars.empty())
return dump;
+
+ Localizer loc;
dump += "####################################################\n";
dump += "## Begin of NoteBook variables section ##\n";