From 84cb304d456e053194b7c7646ba070b0e1676109 Mon Sep 17 00:00:00 2001 From: Leandro Nunes Date: Thu, 20 May 2021 10:56:54 +0100 Subject: [PATCH] [CI][Docker] set environment variables for UTF-8, to prevent errors when running `black` * Sets environment shell encoding to UTF-8 * This prevents the black formatting tool to exit with the following error: "RuntimeError: Click will abort further execution because Python was configured to use ASCII as encoding for the environment" --- docker/Dockerfile.ci_lint | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/Dockerfile.ci_lint b/docker/Dockerfile.ci_lint index 8c52ebb449c0..61856fff96f4 100644 --- a/docker/Dockerfile.ci_lint +++ b/docker/Dockerfile.ci_lint @@ -43,3 +43,7 @@ RUN bash /install/ubuntu1804_install_clang_format.sh COPY install/ubuntu_install_nodejs.sh /install/ubuntu_install_nodejs.sh RUN bash /install/ubuntu_install_nodejs.sh + +# To prevent `black` command line errors caused by ASCII encoding +ENV LC_ALL=C.UTF-8 +ENV LANG=C.UTF-8