Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Clear LANGUAGE too
Browse files Browse the repository at this point in the history
Sphinx 4.x uses it to get the language of its messages, so we need to reset it for the warning filter to work properly
  • Loading branch information
antonio-rojas committed May 11, 2021
1 parent b9e390f commit d5a374a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/bin/sage-site
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,10 @@ if [ "$1" = "-docbuild" -o "$1" = "--docbuild" ]; then
# proper UTF-8 operation in Python 3.6 or older.
LC_ALL=$(locale -a | grep -E -i '^(c|en_us)[-.]utf-?8$' | head -n 1)
LANG=$LC_ALL
LANGUAGE=$LC_ALL
export LC_ALL
export LANG
export LANGUAGE

# See #30351: bugs in macOS implementations of openblas/libgopm can cause
# docbuild to hang if multiple OpenMP threads are allowed.
Expand Down

0 comments on commit d5a374a

Please sign in to comment.