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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-06-02 12:49:11 +02:00 committed by bstoeger
parent adaa52bf9b
commit ca5f28206b

View file

@ -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