From 144f61d6d4da1a346e7009dd6e034c4de39f66ac Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Mon, 26 Sep 2022 11:21:03 +0200 Subject: [PATCH] Do not use named locales on Windows. --- src/core/utils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/utils.cpp b/src/core/utils.cpp index 6e5d629..75242f3 100644 --- a/src/core/utils.cpp +++ b/src/core/utils.cpp @@ -27,7 +27,11 @@ std::string formatCentAsEuroString(const int cent, int width) return currStream.str();*/ +#if defined(_WIN64) || defined(_WIN32) + std::locale myLocale; +#else std::locale myLocale{"de_DE.utf8"}; +#endif return fmt::format(myLocale, "{:{}.2Lf} €", cent / 100.0L, width); }