Add Latin-1 locale to Ubuntu images (#2078)

diff --git a/buildkite/docker/ubuntu2004/Dockerfile b/buildkite/docker/ubuntu2004/Dockerfile
index 8306c43..4e40cac 100644
--- a/buildkite/docker/ubuntu2004/Dockerfile
+++ b/buildkite/docker/ubuntu2004/Dockerfile
@@ -31,6 +31,7 @@
     llvm \
     llvm-dev \
     lsb-release \
+    locales \
     netcat-openbsd \
     python-is-python3 \
     python2 \
@@ -66,6 +67,9 @@
 # Allow using sudo inside the container.
 RUN echo "ALL ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
 
+# Ensure that Bazel can use its beloved ISO-8859-1 locale.
+RUN localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1
+
 FROM ubuntu2004-bazel-nojdk AS ubuntu2004-nojdk
 
 ### Install Google Cloud SDK.
diff --git a/buildkite/docker/ubuntu2204/Dockerfile b/buildkite/docker/ubuntu2204/Dockerfile
index dbdcf88..fbb0661 100644
--- a/buildkite/docker/ubuntu2204/Dockerfile
+++ b/buildkite/docker/ubuntu2204/Dockerfile
@@ -31,6 +31,7 @@
     llvm \
     llvm-dev \
     lsb-release \
+    locales \
     netcat-openbsd \
     openssh-client \
     python-is-python3 \
@@ -58,6 +59,9 @@
 # Allow using sudo inside the container.
 RUN echo "ALL ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
 
+# Ensure that Bazel can use its beloved ISO-8859-1 locale.
+RUN localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1
+
 FROM ubuntu2204-bazel-nojdk AS ubuntu2204-nojdk
 
 ### Install Google Cloud SDK.
diff --git a/buildkite/docker/ubuntu2404/Dockerfile b/buildkite/docker/ubuntu2404/Dockerfile
index 2ad9d81..c67a33a 100644
--- a/buildkite/docker/ubuntu2404/Dockerfile
+++ b/buildkite/docker/ubuntu2404/Dockerfile
@@ -30,6 +30,7 @@
     llvm \
     llvm-dev \
     lsb-release \
+    locales \
     netcat-openbsd \
     openssh-client \
     python-is-python3 \
@@ -55,6 +56,9 @@
 # Allow using sudo inside the container.
 RUN echo "ALL ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
 
+# Ensure that Bazel can use its beloved ISO-8859-1 locale.
+RUN localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1
+
 FROM ubuntu2404-bazel-nojdk AS ubuntu2404-nojdk
 
 ### Install Google Cloud SDK.