jenkins: another attempt to force the locale to a more standard one

This commit is contained in:
Hans-Christoph Steiner 2018-10-17 17:17:16 +02:00
parent 92bf9315e6
commit 6e5d1a6cc3
3 changed files with 15 additions and 3 deletions

View File

@ -19,8 +19,12 @@ if [ -z $WORKSPACE ]; then
fi
if [ -z $LC_ALL ] || [ $LC_ALL == "C.UTF-8" ] || [[ $LC_ALL != *.UTF-8 ]]; then
for var in `set | grep -Eo '^(LANG|LC_[A-Z]+)' | sort -u`; do
unset $var
done
export LC_ALL=en_US.UTF-8
echo "Forcing locale to $LC_ALL"
echo "Forced locale to ${LC_ALL}:"
set | grep -E '^(LANG|LC_[A-Z]+)'
fi
set -e

View File

@ -13,8 +13,12 @@ if [ -z $WORKSPACE ]; then
fi
if [ -z $LC_ALL ] || [ $LC_ALL == "C.UTF-8" ] || [[ $LC_ALL != *.UTF-8 ]]; then
for var in `set | grep -Eo '^(LANG|LC_[A-Z]+)' | sort -u`; do
unset $var
done
export LC_ALL=en_US.UTF-8
echo "Forcing locale to $LC_ALL"
echo "Forced locale to ${LC_ALL}:"
set | grep -E '^(LANG|LC_[A-Z]+)'
fi
# make sure that no VirtualBox processes are left running

View File

@ -18,8 +18,12 @@ if [ -z $WORKSPACE ]; then
fi
if [ -z $LC_ALL ] || [ $LC_ALL == "C.UTF-8" ] || [[ $LC_ALL != *.UTF-8 ]]; then
for var in `set | grep -Eo '^(LANG|LC_[A-Z]+)' | sort -u`; do
unset $var
done
export LC_ALL=en_US.UTF-8
echo "Forcing locale to $LC_ALL"
echo "Forced locale to ${LC_ALL}:"
set | grep -E '^(LANG|LC_[A-Z]+)'
fi
set -e