Salome HOME
projects
/
modules
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a7d476
)
Bug IPAL21432 - TC5.1.3 Load script doesn't work with Notebook in scenario PROD-009.
RELIQUAT_5x_30102009
author
ouv
<ouv@opencascade.com>
Mon, 26 Oct 2009 10:41:22 +0000
(10:41 +0000)
committer
ouv
<ouv@opencascade.com>
Mon, 26 Oct 2009 10:41:22 +0000
(10:41 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx
patch
|
blob
|
history
diff --git
a/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx
b/src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx
index 373058472710933333441384371f53071930159a..ccde0d3efdfc6e044ca8635dbb39619c9e4d108d 100644
(file)
--- a/
src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx
+++ b/
src/SALOMEDSImpl/SALOMEDSImpl_Study.cxx
@@
-48,6
+48,23
@@
using namespace std;
#define VARIABLE_SEPARATOR ':'
#define OPERATION_SEPARATOR '|'
#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
//============================================================================
/*! Function : SALOMEDSImpl_Study
* Purpose : SALOMEDSImpl_Study constructor
@@
-904,6
+921,8
@@
string SALOMEDSImpl_Study::_GetStudyVariablesScript()
if(myNoteBookVars.empty())
return dump;
if(myNoteBookVars.empty())
return dump;
+
+ Localizer loc;
dump += "####################################################\n";
dump += "## Begin of NoteBook variables section ##\n";
dump += "####################################################\n";
dump += "## Begin of NoteBook variables section ##\n";