mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
use export LC_ALL=C.UTF-8
This commit is contained in:
parent
728c82d029
commit
414326952c
6 changed files with 7 additions and 7 deletions
|
@ -18,7 +18,6 @@ env:
|
||||||
- RUN_FUNCTIONAL_TESTS=true
|
- RUN_FUNCTIONAL_TESTS=true
|
||||||
- RUN_BENCH=false # Set to true for any one job that has debug enabled, to quickly check bench is not crashing or hitting assertions
|
- RUN_BENCH=false # Set to true for any one job that has debug enabled, to quickly check bench is not crashing or hitting assertions
|
||||||
- DOCKER_NAME_TAG=ubuntu:18.04
|
- DOCKER_NAME_TAG=ubuntu:18.04
|
||||||
- LC_ALL=C.UTF-8
|
|
||||||
- BOOST_TEST_RANDOM=1$TRAVIS_BUILD_ID
|
- BOOST_TEST_RANDOM=1$TRAVIS_BUILD_ID
|
||||||
- CCACHE_SIZE=100M
|
- CCACHE_SIZE=100M
|
||||||
- CCACHE_TEMPDIR=/tmp/.ccache-temp
|
- CCACHE_TEMPDIR=/tmp/.ccache-temp
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# Distributed under the MIT software license, see the accompanying
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
|
PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g")
|
||||||
export PATH
|
export PATH
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# Distributed under the MIT software license, see the accompanying
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
travis_retry docker pull "$DOCKER_NAME_TAG"
|
travis_retry docker pull "$DOCKER_NAME_TAG"
|
||||||
env | grep -E '^(CCACHE_|WINEDEBUG|LC_ALL|BOOST_TEST_RANDOM|CONFIG_SHELL)' | tee /tmp/env
|
env | grep -E '^(CCACHE_|WINEDEBUG|LC_ALL|BOOST_TEST_RANDOM|CONFIG_SHELL)' | tee /tmp/env
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# Distributed under the MIT software license, see the accompanying
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
DOCKER_EXEC echo \> \$HOME/.bitcoin # Make sure default datadir does not exist and is never read by creating a dummy file
|
DOCKER_EXEC echo \> \$HOME/.bitcoin # Make sure default datadir does not exist and is never read by creating a dummy file
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# Distributed under the MIT software license, see the accompanying
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
TRAVIS_COMMIT_LOG=$(git log --format=fuller -1)
|
TRAVIS_COMMIT_LOG=$(git log --format=fuller -1)
|
||||||
export TRAVIS_COMMIT_LOG
|
export TRAVIS_COMMIT_LOG
|
||||||
|
|
|
@ -5,7 +5,8 @@
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
#
|
#
|
||||||
# Make sure all shell scripts:
|
# Make sure all shell scripts:
|
||||||
# a.) explicitly opt out of locale dependence using "export LC_ALL=C", or
|
# a.) explicitly opt out of locale dependence using
|
||||||
|
# "export LC_ALL=C" or "export LC_ALL=C.UTF-8", or
|
||||||
# b.) explicitly opt in to locale dependence using the annotation below.
|
# b.) explicitly opt in to locale dependence using the annotation below.
|
||||||
|
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
@ -16,7 +17,7 @@ for SHELL_SCRIPT in $(git ls-files -- "*.sh" | grep -vE "src/(secp256k1|univalue
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
FIRST_NON_COMMENT_LINE=$(grep -vE '^(#.*|)$' "${SHELL_SCRIPT}" | head -1)
|
FIRST_NON_COMMENT_LINE=$(grep -vE '^(#.*|)$' "${SHELL_SCRIPT}" | head -1)
|
||||||
if [[ ${FIRST_NON_COMMENT_LINE} != "export LC_ALL=C" ]]; then
|
if [[ ${FIRST_NON_COMMENT_LINE} != "export LC_ALL=C" && ${FIRST_NON_COMMENT_LINE} != "export LC_ALL=C.UTF-8" ]]; then
|
||||||
echo "Missing \"export LC_ALL=C\" (to avoid locale dependence) as first non-comment non-empty line in ${SHELL_SCRIPT}"
|
echo "Missing \"export LC_ALL=C\" (to avoid locale dependence) as first non-comment non-empty line in ${SHELL_SCRIPT}"
|
||||||
EXIT_CODE=1
|
EXIT_CODE=1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue