unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob a491053d06b62a7723c113cfd12660a2f87775d2 1871 bytes (raw)
name: packages/patches/epiphany-fix-encoding-test.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
From 3b334ba2c9dc869dc84e4b2f84d00df972c0e734 Mon Sep 17 00:00:00 2001
From: Michael Catanzaro <mcatanzaro@redhat.com>
Date: Fri, 10 Nov 2023 15:36:14 -0600
Subject: [PATCH] Fix encodings test when running in non-English locale

Let's force use of the C.UTF-8 locale, so the value of the collation key
does not depend on the host locale.

Fixes #1842

Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1413>
---
 tests/ephy-encodings-test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/ephy-encodings-test.c b/tests/ephy-encodings-test.c
index a3ea7e781d..992d80d2c2 100644
--- a/tests/ephy-encodings-test.c
+++ b/tests/ephy-encodings-test.c
@@ -44,7 +44,7 @@ test_ephy_encodings_create (void)
   g_assert_cmpstr (ephy_encoding_get_encoding (encoding), ==, "UTF-8");
   g_assert_cmpstr (ephy_encoding_get_title (encoding), ==, "Unicode (UTF-8)");
   g_assert_cmpstr (ephy_encoding_get_title_elided (encoding), ==, "Unicode (UTF-8)");
-  g_assert_cmpstr (ephy_encoding_get_collation_key (encoding), ==, "\311\263\307\276\307\205\305\271\310\215\306\202\306\216\311\263\311\250\306\245\305\237\001\035\035\035\035\035\035\035\035\035\035\035\001\007\002\002\002\002\002\002\007\007\007\002\001\001\346\244\273\001\346\215\264\001\346\211\243\001\346\204\235\001\346\216\257\001\346\205\217\001\346\206\212\001\343\265\233\001\343\265\242\001\346\244\273\001\346\244\231\001\346\234\257\001\343\265\247\001\345\277\241\001\343\265\243");
+  g_assert_cmpstr (ephy_encoding_get_collation_key (encoding), ==, "Unicode (UTF-8)");
   g_assert_cmpint (ephy_encoding_get_language_groups (encoding), ==, LG_UNICODE);
 
   g_object_unref (encoding);
@@ -80,7 +80,7 @@ main (int   argc,
   int ret;
 
   gtk_test_init (&argc, &argv);
-  setlocale (LC_ALL, "");
+  setlocale (LC_ALL, "C.UTF-8");
 
   ephy_debug_init ();
 
-- 
GitLab


debug log:

solving a491053d06b62a7723c113cfd12660a2f87775d2 ...
found a491053d06b62a7723c113cfd12660a2f87775d2 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).