From 7b23e6e13f042aa06741dbb7127eb291a61752a7 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 18 Jun 2018 14:20:18 +0200 Subject: [PATCH] Follow-up to #13454: Fix broken build by exporting LC_ALL=C --- test/lint/lint-python-utf8-encoding.sh | 1 + 1 file changed, 1 insertion(+) 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