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.

Signed-off-by: Daniel Axtens <d...@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

_______________________________________________
Patchwork mailing list
Patchwork@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to