[glib: 1/3] tests: Use de_DE.UTF-8 instead of de_DE in gsettings test



commit 313a0fffe5343012517fb3c6980d04aa59749b9c
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Sat Jun 9 02:30:20 2018 +0800

    tests: Use de_DE.UTF-8 instead of de_DE in gsettings test
    
    FreeBSD doesn't have a de_DE locale without encoding suffix.

 gio/tests/gsettings.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/gsettings.c b/gio/tests/gsettings.c
index 2f056ee95..93e819244 100644
--- a/gio/tests/gsettings.c
+++ b/gio/tests/gsettings.c
@@ -749,7 +749,7 @@ test_l10n (void)
   g_free (str);
   str = NULL;
 
-  setlocale (LC_MESSAGES, "de_DE");
+  setlocale (LC_MESSAGES, "de_DE.UTF-8");
   /* Only do the test if translation is actually working... */
   if (g_str_equal (dgettext ("test", "\"Unnamed\""), "\"Unbenannt\""))
     {
@@ -796,7 +796,7 @@ test_l10n_context (void)
   g_free (str);
   str = NULL;
 
-  setlocale (LC_MESSAGES, "de_DE");
+  setlocale (LC_MESSAGES, "de_DE.UTF-8");
   /* Only do the test if translation is actually working... */
   if (g_str_equal (dgettext ("test", "\"Unnamed\""), "\"Unbenannt\""))
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]