]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: Don't force English locale
authorZack Cerza <zack@redhat.com>
Tue, 4 Jun 2024 19:58:03 +0000 (13:58 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 4 Jun 2024 20:28:14 +0000 (14:28 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
bootstrap

index 72b028407247fab23b1dd9f65bca2133c5736185..c9dd835efd780d54c0d8d0a0f1e7efeffeddf5b0 100755 (executable)
--- 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" ] || \