unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob bd5924ef872c3077ae5fa92cb708840791e3736d 1120 bytes (raw)
name: packages/patches/bubblewrap-fix-locale-in-tests.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
 
From 9282223de4b511aeda3b7d2caf3810a56a865710 Mon Sep 17 00:00:00 2001
From: kiasoc5 <kiasoc5@tutanota.com>
Date: Mon, 10 Jan 2022 14:16:32 -0500
Subject: [PATCH] Use C locale unconditionally for tests.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The ‘en_US.utf8’ locale is available. However, the ‘locale -a’ command won’t list it.
---
 tests/libtest-core.sh | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/tests/libtest-core.sh b/tests/libtest-core.sh
index 9632e90..82951dd 100644
--- a/tests/libtest-core.sh
+++ b/tests/libtest-core.sh
@@ -41,12 +41,7 @@ assert_not_reached () {
 #
 # If we can't find the locale command assume we have support for C.UTF-8
 # (e.g. musl based systems)
-if type -p locale >/dev/null; then
-    export LC_ALL=$(locale -a | grep -iEe '^(C|en_US)\.(UTF-8|utf8)$' | head -n1 || true)
-    if [ -z "${LC_ALL}" ]; then fatal "Can't find suitable UTF-8 locale"; fi
-else
-    export LC_ALL=C.UTF-8
-fi
+export LC_ALL=en_US.utf8
 # A GNU extension, used whenever LC_ALL is not C
 unset LANGUAGE
 
-- 
2.34.1


debug log:

solving bd5924ef872c3077ae5fa92cb708840791e3736d ...
found bd5924ef872c3077ae5fa92cb708840791e3736d 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).