[PATCH v2 1/9] tools/docker: assume terminal supports utf-8
Daniel Axtens
dja at axtens.net
Sun Feb 25 01:50:12 AEDT 2018
Set PYTHONIOENCODING to UTF-8, which allows Python3 to print UTF-8
directly to the terminal (to a pipe or shell-redirected file) rather
than throwing an error.
Reviewed-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
Signed-off-by: Daniel Axtens <dja at axtens.net>
---
tools/docker/Dockerfile | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
index eb6d35d82528..2154ca7e67bf 100644
--- a/tools/docker/Dockerfile
+++ b/tools/docker/Dockerfile
@@ -10,6 +10,7 @@ ENV db_pass password
ENV DJANGO_SETTINGS_MODULE patchwork.settings.dev
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONUNBUFFERED 1
+ENV PYTHONIOENCODING UTF-8
# System
# trusty and findutils is for python3.4
--
2.14.1
More information about the Patchwork
mailing list