Closed Botje closed 4 months ago
In my case, the line std::locale::global(std::locale(""));
is not required to produce this behaviour. I am not setting the global locale anywhere in my project*, the only reference to locale I make is the use of std::format("{:L} ...
but still the integer 2024 is being rendered as "2,024" by yaml-cpp.
Yes, definitely a bug. Can @Botje and/or @tibyo confirm that #1297 fixes this issue?
From a question on StackOverflow:
When run under
LC_ALL=en_US.UTF-8
this produces2,112
which parses as a string"2,112"
. UnderLC_ALL=nl_BE.UTF-8
this becomes2.112
, which is interpreted by other parsers as a floating point number.