mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-28 05:14:25 +00:00
consistent locale in profiles
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user