From 30775e66bd8f18583629f2d1a1b0ecf02ce23bdf Mon Sep 17 00:00:00 2001 From: Angelos Kolaitis Date: Fri, 5 Aug 2022 12:16:14 +0300 Subject: [PATCH] export LC_ALL and LANG to fix issues with Click (#3372) --- microk8s-resources/wrappers/apiservice-kicker | 2 ++ snap/hooks/configure | 3 +++ 2 files changed, 5 insertions(+) diff --git a/microk8s-resources/wrappers/apiservice-kicker b/microk8s-resources/wrappers/apiservice-kicker index fbe2be12a8..dc1a8237ff 100755 --- a/microk8s-resources/wrappers/apiservice-kicker +++ b/microk8s-resources/wrappers/apiservice-kicker @@ -6,6 +6,8 @@ export PATH="$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH" ARCH="$($SNAP/bin/uname -m)" export LD_LIBRARY_PATH="$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/$ARCH-linux-gnu:$SNAP/usr/lib/$ARCH-linux-gnu" export LD_LIBRARY_PATH=$SNAP_LIBRARY_PATH:$LD_LIBRARY_PATH +export LC_ALL="${LC_ALL:-C.UTF-8}" +export LANG="${LANG:-C.UTF-8}" source $SNAP/actions/common/utils.sh diff --git a/snap/hooks/configure b/snap/hooks/configure index c549fbf79e..50271a1df9 100755 --- a/snap/hooks/configure +++ b/snap/hooks/configure @@ -4,6 +4,9 @@ set -eux source $SNAP/actions/common/utils.sh +export LC_ALL="${LC_ALL:-C.UTF-8}" +export LANG="${LANG:-C.UTF-8}" + # Make sure either the install hook has run or we are refreshing an already existing snap as indicated # by the existence of certificates. if [ ! -f "${SNAP_DATA}/var/lock/installed.lock" ] && [ ! -f ${SNAP_DATA}/certs/csr.conf.template ]