mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2026-02-20 23:26:28 +00:00
fix: use C locale by default
This commit is contained in:
committed by
Jesse Beder
parent
1d8ca1f35e
commit
b95aa146ec
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user