diff --git a/statusweather.cpp b/statusweather.cpp index d4f30af..d9e639a 100644 --- a/statusweather.cpp +++ b/statusweather.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -171,6 +172,8 @@ void print_weather() return "#66ff66"; }()}; + // NOTE: It is not possible to use local decimal separators and specify how + // many digits should be displayed after the separator. 🙁 std::cout << format(R"({0:s} {2:.1f}°C{3:s})", weather.icon, color, weather.temperature, weather.old ? R"( )" : "") @@ -196,6 +199,7 @@ int main() { try { + std::locale::global(std::locale("")); // TODO: Implement clean shutdown. std::atomic cancelled{false}; auto future{