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

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