Message ID | 20180221141716.10908-2-dja@axtens.net |
---|---|
State | Changes Requested |
Headers | show |
Series | Tools and fixes for parallel parsing | expand |
Context | Check | Description |
---|---|---|
dja/snowpatch-0_1_0 | success | master/apply_patch Successfully applied |
dja/snowpatch-snowpatch_job_snowpatch-patchwork | success | Test snowpatch/job/snowpatch-patchwork on branch master |
On 22/02/18 01:17, Daniel Axtens wrote: > 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 <dja@axtens.net> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
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
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 <dja@axtens.net> --- tools/docker/Dockerfile | 1 + 1 file changed, 1 insertion(+)