aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpracticalswift <[email protected]>2018-06-18 14:20:18 +0200
committerpracticalswift <[email protected]>2018-06-18 14:20:18 +0200
commit7b23e6e13f042aa06741dbb7127eb291a61752a7 (patch)
treee35e7b26678e175fbf935d0e17fec1ab2941d501
parentMerge #13454: Make sure LC_ALL=C is set in all shell scripts (diff)
downloaddiscoin-7b23e6e13f042aa06741dbb7127eb291a61752a7.tar.xz
discoin-7b23e6e13f042aa06741dbb7127eb291a61752a7.zip
Follow-up to #13454: Fix broken build by exporting LC_ALL=C
-rwxr-xr-xtest/lint/lint-python-utf8-encoding.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lint/lint-python-utf8-encoding.sh b/test/lint/lint-python-utf8-encoding.sh
index ce973e710..d0ff38ea0 100755
--- a/test/lint/lint-python-utf8-encoding.sh
+++ b/test/lint/lint-python-utf8-encoding.sh
@@ -7,6 +7,7 @@
# Make sure we explicitly open all text files using UTF-8 (or ASCII) encoding to
# avoid potential issues on the BSDs where the locale is not always set.
+export LC_ALL=C
EXIT_CODE=0
OUTPUT=$(git grep " open(" -- "*.py" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]")
if [[ ${OUTPUT} != "" ]]; then