There was an error while loading. Please reload this page.
2 parents 1691567 + dc8576c commit c5deb79Copy full SHA for c5deb79
1 file changed
bootstrap
@@ -106,9 +106,11 @@ if [ -f "$VENV/pyvenv.cfg" ]; then
106
sed -i'' -e 's/\(include-system-site-packages\s*=\s*\)true/\1false/g' $VENV/pyvenv.cfg
107
fi
108
109
-# Attempt to force a UTF-8 locale without being specific to English
110
-export LANG=${LANG:-C.UTF-8}
111
-(echo $LANG | grep -qi utf-8) || export LC_ALL=$LANG.UTF-8
+# Attempt to force a UTF-8 locale without forcing English
+LANG=${LANG:=C}
+LC_ALL=${LC_ALL:=C}
112
+export LANG="${LANG/.*/}.utf-8"
113
+export LC_ALL="${LC_ALL/.*/}.utf-8"
114
115
if [ -z "$NO_CLOBBER" ] && \
116
[ ! -e "$VENV/bin/pip" -o ! -e "$VENV/bin/$PYTHON" ] || \
0 commit comments