From e0f71f1a4929c7d68e6612e150f54fcbaa74caed 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 6dd9e898e..ef5a86adb 100644 --- a/tests/testprofile.cpp +++ b/tests/testprofile.cpp @@ -31,6 +31,8 @@ void TestProfile::init() QCoreApplication::setOrganizationName("Subsurface"); QCoreApplication::setOrganizationDomain("subsurface.hohndel.org"); QCoreApplication::setApplicationName("Subsurface"); + + setlocale(LC_ALL, "C"); } void TestProfile::testProfileExport() {