diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2020-03-03 20:50:08 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2020-03-03 20:50:08 -0800 |
commit | 8e0163a443d39f961aa7361c0bad02229d6ceedf (patch) | |
tree | cb09f450c9d171d06a02cc2a60fb152154f598d3 /build | |
parent | fb76e3d32c93c2d54af74449e7d8d8247046492c (diff) | |
download | gjs-8e0163a443d39f961aa7361c0bad02229d6ceedf.tar.gz |
build: Handle missing /usr/bin/locale
/usr/bin/locale is shipped by glibc, so for example on musl systems it
is missing. In this case, don't set the LC_ALL environment variable, and
hope for the best. (This also makes the change that LC_ALL is left
untouched on Windows, which seems better.)
Closes: #296
Diffstat (limited to 'build')
-rwxr-xr-x | build/choose-tests-locale.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/choose-tests-locale.sh b/build/choose-tests-locale.sh index ded42b99..73b273b8 100755 --- a/build/choose-tests-locale.sh +++ b/build/choose-tests-locale.sh @@ -1,5 +1,9 @@ #!/bin/sh +if ! which locale > /dev/null; then + exit 1 +fi + locales=$(locale -a | xargs -n1) case $locales in |