summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoreolianoe2016-09-03 08:50:34 +0200
committereolianoe2016-09-03 08:50:34 +0200
commita71bd891597d513326676602c5dba7d828978740 (patch)
tree78c8066dcec4acbc56ba1346ba1fb3c0ad51b405
parent09662f495b59a211f19a7d10b7b4e6953c8fbae3 (diff)
downloadaur-a71bd891597d513326676602c5dba7d828978740.tar.gz
Proper check for the locale
-rw-r--r--PKGBUILD8
1 files changed, 6 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 20124b94bde..f9f371c7632 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -45,8 +45,12 @@ build() {
check(){
cd "${srcdir}/${_pkgname}"
- # Needed for the tests, especially when building in clean chroot
- [[ ${LANG} = C ]] && export LANG=en_US.UTF8
+ # When using a clean chroot,
+ # one has to choose a proper locale to run the tests
+ if [ "${LANG}" == "C" ]
+ then
+ export LANG=$(locale -a | grep utf8 | head -n1)
+ fi
make test
}