diff --git a/jenkins-build-all b/jenkins-build-all index 9d670a35..08e28ed7 100755 --- a/jenkins-build-all +++ b/jenkins-build-all @@ -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 diff --git a/jenkins-setup-build-environment b/jenkins-setup-build-environment index 33312458..62c4e009 100755 --- a/jenkins-setup-build-environment +++ b/jenkins-setup-build-environment @@ -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 diff --git a/jenkins-test b/jenkins-test index 5f678655..4914a455 100755 --- a/jenkins-test +++ b/jenkins-test @@ -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