Skip to content

Commit

Permalink
Follow-up to bitcoin#13454: Fix broken build by exporting LC_ALL=C
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift authored and Longyan-Wu committed Jul 1, 2018
1 parent 44aa537 commit 8857da2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/lint/lint-python-utf8-encoding.sh
Expand Up @@ -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
Expand Down

0 comments on commit 8857da2

Please sign in to comment.