diff options
author | Laurent Montel <montel@kde.org> | 2020-12-13 11:00:59 +0100 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2020-12-13 11:00:59 +0100 |
commit | b6f0f66e5c0dc4f95e8cece1b9ec7241691c065e (patch) | |
tree | 25e69634e534fe8e48a942ce93b945f0e7bfb241 | |
parent | 854a5e65cba175ed9f9654c967822aa4b170927b (diff) | |
download | kconfig-b6f0f66e5c0dc4f95e8cece1b9ec7241691c065e.tar.gz kconfig-b6f0f66e5c0dc4f95e8cece1b9ec7241691c065e.tar.bz2 |
Make sure to use en language
-rw-r--r-- | autotests/kstandardshortcuttest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 <kstandardshortcut.h> +#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")); |