noble-amd64-hafnium: enable UTF-8 locale in noble-amd64-hafnium

Install and generate UTF-8 locales (C.UTF-8, en_US.UTF-8) and set
LANG/LC_ALL to en_US.UTF-8 so Jenkins renders Unicode output correctly
(e.g. commitlint symbols ⧗/✔).

Change-Id: I7c1895549a882e43f16e72d72e5dddff4b0f1cf8
Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
diff --git a/noble-amd64-hafnium/Dockerfile b/noble-amd64-hafnium/Dockerfile
index 045aae7..a85142f 100644
--- a/noble-amd64-hafnium/Dockerfile
+++ b/noble-amd64-hafnium/Dockerfile
@@ -30,7 +30,8 @@
     netcat-openbsd \
     telnet \
     nodejs \
-    npm"
+    npm \
+    locales"
 
 # Can be overriden at build time
 ARG BUILDSLAVE_PASSWORD=buildslave
@@ -75,7 +76,13 @@
 RUN python3 -m venv /opt/venv
 ENV PATH=/opt/venv/bin:${PATH}
 
+## UTF-8 locale (for clean Unicode in Jenkins logs, e.g. commitlint ouput)
+ENV LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 TERM=xterm-256color
+
 RUN set -ex ;\
+    echo 'locales locales/locales_to_be_generated multiselect C.UTF-8 UTF-8, en_US.UTF-8 UTF-8' | debconf-set-selections && \
+    echo 'locales locales/default_environment_locale select en_US.UTF-8' | debconf-set-selections && \
+    locale-gen && \
     # Install Python requirements
     pip3 install --no-cache-dir -r /opt/requirements_python3.txt ;\
     # Setup buildslave user for Jenkins