From b6f0f66e5c0dc4f95e8cece1b9ec7241691c065e Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Sun, 13 Dec 2020 11:00:59 +0100 Subject: Make sure to use en language --- autotests/kstandardshortcuttest.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'autotests/kstandardshortcuttest.cpp') diff --git a/autotests/kstandardshortcuttest.cpp b/autotests/kstandardshortcuttest.cpp index 33fdf2f1..69e234ab 100644 --- a/autotests/kstandardshortcuttest.cpp +++ b/autotests/kstandardshortcuttest.cpp @@ -11,6 +11,15 @@ QTEST_MAIN(KStandardShortcutTest) // GUI needed by KAccel #include +#ifndef Q_OS_WIN +void initLocale() +{ + setenv("LC_ALL", "en_US.utf-8", 1); +} + +Q_CONSTRUCTOR_FUNCTION(initLocale) +#endif + void KStandardShortcutTest::testShortcutDefault() { QCOMPARE(QKeySequence::listToString(KStandardShortcut::hardcodedDefaultShortcut(KStandardShortcut::FullScreen)), QLatin1String("Ctrl+Shift+F")); -- cgit v1.2.1