From c531613cc9a52c9348ec11a93317be41f674d4d7 Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Fri, 21 May 2021 09:26:50 -0700 Subject: [PATCH] HADOOP-17718. Explicitly set locale in the Dockerfile. (#3034) Reviewed-by: Akira Ajisaka (cherry picked from commit ad923ad5642b2b11357fbee4277f3435300a19c5) Conflicts: dev-support/docker/Dockerfile_centos_7 dev-support/docker/Dockerfile_centos_8 (cherry picked from commit 5e09d38b2505db70c712b8b6c93635220325156f) Conflicts: dev-support/docker/Dockerfile_aarch64 --- dev-support/docker/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev-support/docker/Dockerfile b/dev-support/docker/Dockerfile index bb0672315a9..2c7015c0a90 100644 --- a/dev-support/docker/Dockerfile +++ b/dev-support/docker/Dockerfile @@ -85,6 +85,10 @@ RUN apt-get -q update \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +RUN locale-gen en_US.UTF-8 +ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' +ENV PYTHONIOENCODING=utf-8 + ###### # Set env vars required to build Hadoop ######