From ea0bfb6bc78caff014426aa690422ffea5f0dad4 Mon Sep 17 00:00:00 2001 From: Maksim Malchuk Date: Fri, 9 Aug 2024 21:21:48 +0300 Subject: Configure Apache services to use correct locale Closes-Bug: #2076453 Change-Id: I6af9baf09a19a7dbcaf98585870aa44ff79398d3 Signed-off-by: Maksim Malchuk (cherry picked from commit 2caa64df67349b365b5ce94a0e9625d0b6ff87d1) --- docker/base/httpd_setup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docker/base') diff --git a/docker/base/httpd_setup.sh b/docker/base/httpd_setup.sh index eb3d6794e..35f7b5b1e 100644 --- a/docker/base/httpd_setup.sh +++ b/docker/base/httpd_setup.sh @@ -39,3 +39,13 @@ EOF /usr/libexec/httpd-ssl-gencerts fi fi + +# The default system locale with unicode support +LANG=C.UTF-8 + +# Override the default locale if configured +if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then + [ -f /etc/default/locale ] && . /etc/default/locale +else + [ -f /etc/locale.conf ] && . /etc/locale.conf +fi -- cgit v1.2.3