Skip to content

Commit fe1aefd

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Configure Apache services to use correct locale"
2 parents 44acae3 + 2caa64d commit fe1aefd

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)