Use std::locale::classic() instead of creating new C locales on demand.

This commit is contained in:
Michael Müller
2025-09-15 14:09:11 +02:00
committed by Jesse Beder
parent aa8d4e4750
commit 4fe2fb83fe
6 changed files with 11 additions and 11 deletions

View File

@@ -310,7 +310,7 @@ void node_data::convert_sequence_to_map(const shared_memory_holder& pMemory) {
reset_map();
for (std::size_t i = 0; i < m_sequence.size(); i++) {
std::stringstream stream;
stream.imbue(std::locale("C"));
stream.imbue(std::locale::classic());
stream << i;
node& key = pMemory->create_node();