File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change 1111pwd
1212env
1313
14- # setup the locale as HLS contains non-ascii modules and content.
15- setup_locale
16-
1714# ensure ghcup
1815install_ghcup
1916
Original file line number Diff line number Diff line change @@ -207,32 +207,3 @@ mktempdir() {
207207 ;;
208208 esac
209209}
210-
211- # "Inspired" from GHC GitLab CI
212- # https://gitlab.haskell.org/ghc/ghc/-/blob/214b2b6916f2d016ab9db0b766060e7828bb47a0/.gitlab/ci.sh#L60
213- setup_locale () {
214- # BSD grep terminates early with -q, consequently locale -a will get a
215- # SIGPIPE and the pipeline will fail with pipefail.
216- shopt -o -u pipefail
217- if locale -a | grep -q C.UTF-8; then
218- # Debian
219- export LANG=C.UTF-8
220- elif locale -a | grep -q C.utf8; then
221- # Fedora calls it this
222- export LANG=C.utf8
223- elif locale -a | grep -q en_US.UTF-8; then
224- # Centos doesn't have C.UTF-8
225- export LANG=en_US.UTF-8
226- elif locale -a | grep -q en_US.utf8; then
227- # Centos doesn't have C.UTF-8
228- export LANG=en_US.utf8
229- else
230- error " Failed to find usable locale"
231- info " Available locales:"
232- locale -a
233- fail " No usable locale, aborting..."
234- fi
235- info " Using locale $LANG ..."
236- export LC_ALL=$LANG
237- shopt -o -s pipefail
238- }
You can’t perform that action at this time.
0 commit comments