summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-09-07 12:13:04 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-09-08 15:43:55 -0400
commitd989c84225090f850591e9f4f82adffbf8c96cac (patch)
tree721874b03b714dc900e6a377b3703b4b715baefd
parent0c61cbfff985723240671b54d6f80075e4907e85 (diff)
downloadhaskell-d989c84225090f850591e9f4f82adffbf8c96cac.tar.gz
gitlab-ci: Accept Centos 7 C.utf8 locale
Centos apparently has C.utf8 rather than C.UTF-8. (cherry picked from commit d9f85dd25a26a04d3485470afb3395ee2dec6464)
-rwxr-xr-x.gitlab/ci.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab/ci.sh b/.gitlab/ci.sh
index 5714f03fd4..5a42709c24 100755
--- a/.gitlab/ci.sh
+++ b/.gitlab/ci.sh
@@ -76,6 +76,9 @@ function setup_locale() {
elif locale -a | grep -q en_US.UTF-8; then
# Centos doesn't have C.UTF-8
export LANG=en_US.UTF-8
+ elif locale -a | grep -q en_US.utf8; then
+ # Centos doesn't have C.UTF-8
+ export LANG=en_US.utf8
else
error "Failed to find usable locale"
info "Available locales:"