Skip to content

Commit a7a602b

Browse files
committed
Configure Apache services to use correct locale
Closes-Bug: #2076453 Change-Id: I6af9baf09a19a7dbcaf98585870aa44ff79398d3 Signed-off-by: Maksim Malchuk <[email protected]> (cherry picked from commit 2caa64d)
1 parent 18c1d8b commit a7a602b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

docker/base/httpd_setup.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,13 @@ EOF
3939
/usr/libexec/httpd-ssl-gencerts
4040
fi
4141
fi
42+
43+
# The default system locale with unicode support
44+
LANG=C.UTF-8
45+
46+
# Override the default locale if configured
47+
if [[ "${KOLLA_BASE_DISTRO}" =~ debian|ubuntu ]]; then
48+
[ -f /etc/default/locale ] && . /etc/default/locale
49+
else
50+
[ -f /etc/locale.conf ] && . /etc/locale.conf
51+
fi
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- |
4+
Apache services like Keystone now started with correct unicode locale.
5+
Keystone under Apache on Ubuntu will fail with a UnicodeEncodeError
6+
when LDAP driver and DEBUG are enabled.
7+
`LP#2076453 <https://bugs.launchpad.net/kolla/+bug/2076453>`__

0 commit comments

Comments
 (0)