From 9446e1a80a470e52fd29d0231f3502cc0e0cae94 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 12 Jun 2026 09:56:38 -0400 Subject: [PATCH] consistent locale in profiles --- libi2pd/Profiling.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libi2pd/Profiling.cpp b/libi2pd/Profiling.cpp index 0faa908e..f6b68a18 100644 --- a/libi2pd/Profiling.cpp +++ b/libi2pd/Profiling.cpp @@ -73,9 +73,12 @@ namespace data std::string ident = identHash.ToBase64 (); std::string path = g_ProfilesStorage.Path(ident); - try { - boost::property_tree::write_ini (path, pt); - } catch (std::exception& ex) { + try + { + boost::property_tree::write_ini (path, pt, 0, std::locale::classic()); + } + catch (std::exception& ex) + { /* boost exception verbose enough */ LogPrint (eLogError, "Profiling: ", ex.what ()); } @@ -96,7 +99,7 @@ namespace data try { - boost::property_tree::read_ini (path, pt); + boost::property_tree::read_ini (path, pt, std::locale::classic()); } catch (std::exception& ex) { /* boost exception verbose enough */