Skip to content

Commit

Permalink
Follow-up to #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 str4d committed Oct 28, 2020
1 parent 32fe883 commit 69d3d38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/lint/lint-python-utf8-encoding.sh
Original file line number Diff line number Diff line change
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 69d3d38

Please sign in to comment.