From ca5f28206b64011ecf22d1488a651233f4fadf55 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 2 Jun 2024 12:49:11 +0200 Subject: [PATCH] tests: make profile test work with non-C locales For reasons unknown to me, the profile test is executed with a weird locale, resulting in wrong formatting. By setting the locale manually to "C", the tests start to work. Signed-off-by: Berthold Stoeger --- tests/testprofile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testprofile.cpp b/tests/testprofile.cpp index 6dd9e898e..e650bd1cf 100644 --- a/tests/testprofile.cpp +++ b/tests/testprofile.cpp @@ -18,6 +18,8 @@ void TestProfile::init() { + setlocale(LC_ALL, "C"); + // Set UTF8 text codec as in real applications QTextCodec::setCodecForLocale(QTextCodec::codecForMib(106)); // first, setup the preferences