aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Backes Vargas <[email protected]>2021-04-26 12:27:49 -0300
committerLeonardo Backes Vargas <[email protected]>2021-04-26 12:27:49 -0300
commit34258c2cc648555965d5a782a428e68573ff3008 (patch)
tree8ffe8816cd7187e90213ab71febb33d988895647
parentd26412c05270155debc459728bec9b7d47c78f5e (diff)
Fix #2237 forcing OID::to_string to use C locale, avoiding thousand separators from the process locale.
-rw-r--r--src/lib/asn1/asn1_oid.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/asn1/asn1_oid.cpp b/src/lib/asn1/asn1_oid.cpp
index d31cafbad..ecedd100c 100644
--- a/src/lib/asn1/asn1_oid.cpp
+++ b/src/lib/asn1/asn1_oid.cpp
@@ -98,6 +98,7 @@ OID::OID(const std::string& oid_str)
std::string OID::to_string() const
{
std::ostringstream oss;
+ oss.imbue(std::locale("C"));
for(size_t i = 0; i != m_id.size(); ++i)
{
oss << m_id[i];