[librsvg/librsvg-2.44] rsvg-test.c: Override the environment's locale with LC_ALL



commit 7c3e08f47ec19566c77ac10ca886fd478c69dc4f
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Oct 4 19:59:19 2018 -0500

    rsvg-test.c: Override the environment's locale with LC_ALL
    
    We use a made-up set of language preferences for tests with the
    systemLanguage attribute.  Previously we were using the LANGUAGE
    environment variable, which is a GNU extension.
    
    Now we use LC_ALL, which is the "override everything" standard variable.

 tests/rsvg-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/rsvg-test.c b/tests/rsvg-test.c
index 6b4bb736..d27de7b9 100644
--- a/tests/rsvg-test.c
+++ b/tests/rsvg-test.c
@@ -380,7 +380,7 @@ main (int argc, char **argv)
     int result;
 
     /* For systemLanguage attribute tests */
-    g_setenv ("LANGUAGE", "de:en_US:en", TRUE);
+    g_setenv ("LC_ALL", "de:en_US:en", TRUE);
 
     g_test_init (&argc, &argv, NULL);
 


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