fix: use C locale by default

This commit is contained in:
Simon Gene Gottlieb
2024-07-17 13:06:39 +02:00
committed by Jesse Beder
parent 1d8ca1f35e
commit b95aa146ec
6 changed files with 19 additions and 0 deletions

View File

@@ -310,6 +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 << i;
node& key = pMemory->create_node();

View File

@@ -77,6 +77,7 @@ void Parser::HandleYamlDirective(const Token& token) {
}
std::stringstream str(token.params[0]);
str.imbue(std::locale("C"));
str >> m_pDirectives->version.major;
str.get();
str >> m_pDirectives->version.minor;