diff options
| -rw-r--r-- | docker/base/Dockerfile.j2 | 6 | ||||
| -rw-r--r-- | releasenotes/notes/unicode-locale-018fe01eaccc556d.yaml | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 992ae15f0..6b4d5dd6e 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -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() %} diff --git a/releasenotes/notes/unicode-locale-018fe01eaccc556d.yaml b/releasenotes/notes/unicode-locale-018fe01eaccc556d.yaml new file mode 100644 index 000000000..b248f91bf --- /dev/null +++ b/releasenotes/notes/unicode-locale-018fe01eaccc556d.yaml @@ -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. |
