From 02475c06d84fdfbc57b1ee327f56bf6aa46eefee Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 4 Jun 2024 13:58:03 -0600 Subject: [PATCH] bootstrap: Don't force English locale Signed-off-by: Zack Cerza --- bootstrap | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index 72b0284072..c9dd835efd 100755 --- a/bootstrap +++ b/bootstrap @@ -187,7 +187,9 @@ if [ -f "$VENV/pyvenv.cfg" ]; then sed -i'' -e 's/\(include-system-site-packages\s*=\s*\)true/\1false/g' $VENV/pyvenv.cfg fi -export LC_ALL=en_US.UTF-8 +# Attempt to force a UTF-8 locale without being specific to English +export LANG=${LANG:-C.UTF-8} +(echo $LANG | grep -qi utf-8) || export LC_ALL=$LANG.UTF-8 if [ -z "$NO_CLOBBER" ] && \ [ ! -e "./$VENV/bin/pip" -o ! -e "./$VENV/bin/$PYTHON" ] || \ -- 2.39.5