aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonardo Backes Vargas <[email protected]>2021-04-26 12:27:49 -0300
committerJack Lloyd <[email protected]>2021-04-27 17:05:38 -0400
commitbb601a637f5255665f6e1d54907d5e4c20431696 (patch)
treeb0ccbaeabf8d690831434df04edf435ac8564c0f
parent0e9310af9c9fd8a8f1fe080c9e902d7173f947e7 (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 7338886f6..cbbe3a4cb 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];