Merge #13494: Follow-up to #13454: Fix broken build by exporting LC_ALL=C

7b23e6e13f Follow-up to #13454: Fix broken build by exporting LC_ALL=C (practicalswift)

Pull request description:

  Follow-up to #13454: Fix broken build by exporting `LC_ALL=C`.

Tree-SHA512: 5cca3182ba034dce28a0df5f4a4b343de6c2526048f17fee30e2f8d946e976b39d9cc54faae6c31bfe89022f9f4c360e9ec8e163a1690bc0656410a48bb81dbf
This commit is contained in:
MarcoFalke 2018-06-18 08:32:53 -04:00
commit d67eff8002
No known key found for this signature in database
GPG key ID: D2EA4850E7528B25

View file

@ -7,6 +7,7 @@
# Make sure we explicitly open all text files using UTF-8 (or ASCII) encoding to # 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. # avoid potential issues on the BSDs where the locale is not always set.
export LC_ALL=C
EXIT_CODE=0 EXIT_CODE=0
OUTPUT=$(git grep " open(" -- "*.py" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]") OUTPUT=$(git grep " open(" -- "*.py" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]")
if [[ ${OUTPUT} != "" ]]; then if [[ ${OUTPUT} != "" ]]; then