[gjs/fix-locale-chooser: 1/2] build: Recognize and prefer C.utf8 locale for tests
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/fix-locale-chooser: 1/2] build: Recognize and prefer C.utf8 locale for tests
- Date: Tue, 23 Jul 2019 20:36:45 +0000 (UTC)
commit 7cb8a2829a8b27a5a1ef870cdb828d694bedee45
Author: Philip Chimento <philip endlessm com>
Date: Tue Jul 23 13:33:22 2019 -0700
build: Recognize and prefer C.utf8 locale for tests
The C.utf8 locale seems to exist in the wild, so if it is present we
should prefer it above other UTF-8 locales, with the same priority as
C.UTF-8.
For context, see failure on GNOME/gjs!312.
build/choose-tests-locale.sh | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/build/choose-tests-locale.sh b/build/choose-tests-locale.sh
index e0489372..4d409ebf 100755
--- a/build/choose-tests-locale.sh
+++ b/build/choose-tests-locale.sh
@@ -5,6 +5,8 @@ locales=$(locale -a)
case $locales in
# Prefer C.UTF-8 although it is only available with newer libc
*C.UTF-8*) tests_locale=C.UTF-8 ;;
+ # C.utf8 has also been observed in the wild
+ *C.utf8*) tests_locale=C.utf8 ;;
# Most systems will probably have this
*en_US.UTF-8*) tests_locale=en_US.UTF-8 ;;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]