From aad052d6808fbd79d139f94fc88dc3e6f0947910 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 20 Nov 2019 15:36:32 +0800 Subject: test/libpeas-gtk/plugin-manager: Use en-US locale on Windows This will allow the tests here to pass on non-English versions of Windows when translations of the GTK+ stack is present. --- tests/libpeas-gtk/plugin-manager.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/libpeas-gtk/plugin-manager.c b/tests/libpeas-gtk/plugin-manager.c index 614ccea..f2e9147 100644 --- a/tests/libpeas-gtk/plugin-manager.c +++ b/tests/libpeas-gtk/plugin-manager.c @@ -27,6 +27,11 @@ #include #include +#ifdef G_OS_WIN32 +#define WIN32_LEAN_AND_MEAN +#include +#endif + #include "testing/testing.h" typedef struct _TestFixture TestFixture; @@ -381,6 +386,10 @@ main (int argc, { testing_init (&argc, &argv); +#ifdef G_OS_WIN32 + SetThreadLocale (MAKELCID (MAKELANGID (LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT)); +#endif + #define TEST(path, ftest) \ g_test_add ("/gtk/plugin-manager/" path, TestFixture, \ (gpointer) test_gtk_plugin_manager_##ftest, \ -- cgit v1.2.1