Skip to content

Commit

Permalink
Configure Apache services to use correct locale
Browse files Browse the repository at this point in the history
Closes-Bug: #2076453
Change-Id: I6af9baf09a19a7dbcaf98585870aa44ff79398d3
Signed-off-by: Maksim Malchuk <[email protected]>
(cherry picked from commit 2caa64d)
  • Loading branch information
mmalchuk committed Aug 21, 2024
1 parent b44df3b commit 7bc03b9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker/base/httpd_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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>`__

0 comments on commit 7bc03b9

Please sign in to comment.