[gnome-desktop/alatiera/locale-revert: 2/3] Revert "*.utf8 are not valid locale names on NetBSD"




commit b32d0dd4b9462ac6627fe8a754d0793ad09c2e0a
Author: Jordan Petridis <jordan centricular com>
Date:   Fri Apr 9 20:40:39 2021 +0300

    Revert "*.utf8 are not valid locale names on NetBSD"
    
    This reverts commit 0c573644bc3ac18afe448318869efadbe5ebf7a5.

 tests/wall-clock.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/wall-clock.c b/tests/wall-clock.c
index a980c951..0e8c49c9 100644
--- a/tests/wall-clock.c
+++ b/tests/wall-clock.c
@@ -57,7 +57,7 @@ test_utf8_character (const char *utf8_char,
        g_object_unref (clock);
 
        /* In a UTF8 locale, we want ratio characters and no colons. */
-       setlocale (LC_ALL, "en_US.UTF-8");
+       setlocale (LC_ALL, "en_US.utf8");
        clock = gnome_wall_clock_new ();
        str = gnome_wall_clock_string_for_datetime (clock,
                                                    datetime,
@@ -69,7 +69,7 @@ test_utf8_character (const char *utf8_char,
 
        /* ... and same thing with an RTL locale: should be formatted with
          * ratio characters */
-       setlocale (LC_ALL, "he_IL.UTF-8");
+       setlocale (LC_ALL, "he_IL.utf8");
        clock = gnome_wall_clock_new ();
        str = gnome_wall_clock_string_for_datetime (clock,
                                                    datetime,
@@ -106,7 +106,7 @@ test_clock_format_setting (void)
        const char *str;
 
        save_locale = setlocale (LC_ALL, NULL);
-       setlocale (LC_ALL, "en_US.UTF-8");
+       setlocale (LC_ALL, "en_US.utf8");
 
        settings = g_settings_new ("org.gnome.desktop.interface");
 


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