summaryrefslogtreecommitdiffstats
path: root/src/uscxml
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml')
-rw-r--r--src/uscxml/interpreter/BasicContentExecutor.cpp4
-rw-r--r--src/uscxml/util/Convenience.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/uscxml/interpreter/BasicContentExecutor.cpp b/src/uscxml/interpreter/BasicContentExecutor.cpp
index 004eea9..5344957 100644
--- a/src/uscxml/interpreter/BasicContentExecutor.cpp
+++ b/src/uscxml/interpreter/BasicContentExecutor.cpp
@@ -501,9 +501,9 @@ void BasicContentExecutor::invoke(XERCESC_NS::DOMElement* element) {
finalize = finalizes.front();
}
- USCXML_MONITOR_CALLBACK2(_callbacks->getMonitors(), beforeUninvoking, element, invokeEvent.invokeid);
+ USCXML_MONITOR_CALLBACK2(_callbacks->getMonitors(), beforeInvoking, element, invokeEvent.invokeid);
_callbacks->invoke(type, source, autoForward, finalize, invokeEvent);
- USCXML_MONITOR_CALLBACK2(_callbacks->getMonitors(), afterUninvoking, element, invokeEvent.invokeid);
+ USCXML_MONITOR_CALLBACK2(_callbacks->getMonitors(), afterInvoking, element, invokeEvent.invokeid);
}
void BasicContentExecutor::uninvoke(XERCESC_NS::DOMElement* invoke) {
diff --git a/src/uscxml/util/Convenience.h b/src/uscxml/util/Convenience.h
index 35abf12..e3bdb9e 100644
--- a/src/uscxml/util/Convenience.h
+++ b/src/uscxml/util/Convenience.h
@@ -32,6 +32,7 @@ inline bool isnan(double x);
template <typename T> std::string toStr(T tmp) {
std::ostringstream outSS;
outSS.precision(std::numeric_limits<double>::digits10 + 1);
+ outSS.imbue(std::locale("C"));
outSS << tmp;
return outSS.str();
}
@@ -39,6 +40,7 @@ template <typename T> std::string toStr(T tmp) {
template <typename T> T strTo(std::string tmp) {
T output;
std::istringstream in(tmp);
+ in.imbue(std::locale("C"));
in >> output;
return output;
}