Skip to content

Commit 7b23e6e

Browse files
Follow-up to #13454: Fix broken build by exporting LC_ALL=C
1 parent 45c00f8 commit 7b23e6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/lint/lint-python-utf8-encoding.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Make sure we explicitly open all text files using UTF-8 (or ASCII) encoding to
88
# avoid potential issues on the BSDs where the locale is not always set.
99

10+
export LC_ALL=C
1011
EXIT_CODE=0
1112
OUTPUT=$(git grep " open(" -- "*.py" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]")
1213
if [[ ${OUTPUT} != "" ]]; then

0 commit comments

Comments
 (0)