From 7aefd704c2caf5c0b878ccef1aa9a4e8ff2e2342 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 9 Mar 2024 20:32:59 +0100 Subject: [PATCH] tests: set locale in testprofile.cpp to "C" In locales using comma as decimal separator the test fails. 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 11fa39c45..31ce2c20d 100644 --- a/tests/testprofile.cpp +++ b/tests/testprofile.cpp @@ -30,6 +30,8 @@ void TestProfile::init() QCoreApplication::setOrganizationName("Subsurface"); QCoreApplication::setOrganizationDomain("subsurface.hohndel.org"); QCoreApplication::setApplicationName("Subsurface"); + + setlocale(LC_ALL, "C"); } void TestProfile::testProfileExport() {