Merge "Use C.UTF-8 locale"

This commit is contained in:
Zuul 2019-10-03 21:09:37 +00:00 committed by Gerrit Code Review
commit 3da7f07dd6
2 changed files with 14 additions and 0 deletions

View File

@ -1,6 +1,12 @@
FROM {{ base_image }}:{{ base_distro_tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block base_lang %}
# NOTE(yoctozepto): use a UTF-8 (Unicode) locale like standard image installs do
# fixes issues arising from ascii fallback usage
ENV LANG C.UTF-8
{% endblock %}
{# NOTE(SamYaple): Avoid uid/gid conflicts by creating each user/group up front. #}
{# Specifics required such as homedir or shell are configured within the service specific image #}
{%- for name, user in users | dictsort() %}

View File

@ -0,0 +1,8 @@
---
upgrade:
- |
``C.UTF-8`` is set as the default locale (``LANG``) for images.
This affects both build- and run-time.
Distributions supported by Kolla default to UTF-8 locale in
installs so this change should provide a more expected experience.
It makes images Unicode-friendly.