From f34baf40b2257ef8857c4293ff1c546594c9d685 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 17 Nov 2006 22:56:27 +0000 Subject: Imbue classic 'C' locale for unformatted output. --- src/propertySet.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/propertySet.cpp b/src/propertySet.cpp index 88b58f64..efc9659c 100644 --- a/src/propertySet.cpp +++ b/src/propertySet.cpp @@ -320,6 +320,8 @@ const bool propertySet::property::getValue() const int val = 0; std::istringstream iss(m_value); + iss.imbue(std::locale::classic()); // no formatting + iss >> val; return (!iss.fail() && val != 0); @@ -353,6 +355,8 @@ const bool propertySet::valueFromString(const string& value) int val = 0; std::istringstream iss(value); + iss.imbue(std::locale::classic()); // no formatting + iss >> val; return (!iss.fail() && val != 0); -- cgit v1.2.3