Configure Apache services to use correct locale

Closes-Bug: #2076453
Change-Id: I6af9baf09a19a7dbcaf98585870aa44ff79398d3
Signed-off-by: Maksim Malchuk <maksim.malchuk@gmail.com>
This commit is contained in:
Maksim Malchuk 2024-08-09 21:21:48 +03:00
parent 3c130f290e
commit 2caa64df67
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,7 @@
---
fixes:
- |
Apache services like Keystone now started with correct unicode locale.
Keystone under Apache on Ubuntu will fail with a UnicodeEncodeError
when LDAP driver and DEBUG are enabled.
`LP#2076453 <https://bugs.launchpad.net/kolla/+bug/2076453>`__