[neon/backports-focal/xdg-desktop-portal/Neon/unstable] tests: tests: Enable i18n support

Bastien Nocera null at kde.org
Wed Jan 13 06:32:42 GMT 2021


Git commit 7cb842b546298df78a6c2bb591277b70bb64132f by Bastien Nocera.
Committed on 22/04/2020 at 14:15.
Pushed by ash into branch 'Neon/unstable'.

tests: Enable i18n support

So the quotes appear properly in test messages ;)

M  +3    -0    tests/test-portals.c

https://invent.kde.org/neon/backports-focal/xdg-desktop-portal/commit/7cb842b546298df78a6c2bb591277b70bb64132f

diff --git a/tests/test-portals.c b/tests/test-portals.c
index 8bfb25d..c30ab13 100644
--- a/tests/test-portals.c
+++ b/tests/test-portals.c
@@ -1,5 +1,6 @@
 #include <config.h>
 #include <string.h>
+#include <locale.h>
 
 #include <gio/gio.h>
 
@@ -337,6 +338,8 @@ main (int argc, char **argv)
 {
   int res;
 
+  setlocale (LC_ALL, NULL);
+
   g_test_init (&argc, &argv, NULL);
 
   g_test_add_func ("/portal/account/exists", test_account_exists);



More information about the Neon-commits mailing list