bootstrap/config.py: change UTF-8 to utf8 for locale name in Dockerfile ENV
authorJoe Guo <joeg@catalyst.net.nz>
Fri, 8 Mar 2019 01:49:06 +0000 (14:49 +1300)
committerStefan Metzmacher <metze@samba.org>
Thu, 18 Apr 2019 12:09:32 +0000 (12:09 +0000)
While generating locales, glibc/localedef/locale-gen will normalize
`UTF-8` to `utf8`, use same name style to avoid string mismatch issues.

Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
bootstrap/config.py

index 556d43bed2fd9777acb53bdc985264da46404701..f17981a2adc8029f63facb1c74ea1b3f0d2e9194 100644 (file)
@@ -262,7 +262,7 @@ RUN useradd -m -s /bin/bash samba && \
 USER samba
 WORKDIR /home/samba
 # samba tests rely on this
-ENV USER=samba LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
+ENV USER=samba LC_ALL=en_US.utf8 LANG=en_US.utf8
 """
 
 # Vagrantfile snippet for each dist