aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2006-11-17 22:56:27 +0000
committerVincent Richard <[email protected]>2006-11-17 22:56:27 +0000
commitf34baf40b2257ef8857c4293ff1c546594c9d685 (patch)
tree1424721fb21ba216d3cff1d73d3b9b5aaf3ae000 /src
parentFixed typo causing bad line length computation in RFC-2047 Base64 output. (diff)
downloadvmime-f34baf40b2257ef8857c4293ff1c546594c9d685.tar.gz
vmime-f34baf40b2257ef8857c4293ff1c546594c9d685.zip
Imbue classic 'C' locale for unformatted output.
Diffstat (limited to 'src')
-rw-r--r--src/propertySet.cpp4
1 files changed, 4 insertions, 0 deletions
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);