From ed1f514d5512d229b4285de8316dfa65cdd5e3df Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 15 Aug 2023 18:30:01 +0200 Subject: [PATCH] cirrus setup: install en_US.UTF-8 locale Make sure the en_US.UTF-8 locale is available so that we can use it in tests, namely "podman logs with non ASCII log tag succeeds with env". It is already there in fedora (except container image but we cannot use journald there anyway) so only do this for debian. I think it makes most sense to move this into the image build process in the future to only do it once at build time. Signed-off-by: Paul Holzinger --- contrib/cirrus/setup_environment.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/cirrus/setup_environment.sh b/contrib/cirrus/setup_environment.sh index 80129a8d35..06dd3acf7e 100755 --- a/contrib/cirrus/setup_environment.sh +++ b/contrib/cirrus/setup_environment.sh @@ -150,6 +150,11 @@ case "$OS_RELEASE_ID" in # (Checked on 2023-08-08 and it's still too old: 1.1.5) # FIXME: please remove this once runc >= 1.2 makes it into debian. modprobe tun + + # TODO: move this into image build process + # We need the "en_US.UTF-8" locale for the "podman logs with non ASCII log tag" tests + sed -i '/en_US.UTF-8/s/^#//g' /etc/locale.gen + locale-gen ;; fedora) if ((CONTAINER==0)); then