[PATCH v2 1/9] tools/docker: assume terminal supports utf-8

Stephen Finucane stephen at that.guru
Sun Feb 25 23:07:01 AEDT 2018


On Sun, 2018-02-25 at 01:50 +1100, 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.
> 
> Reviewed-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> Signed-off-by: Daniel Axtens <dja at axtens.net>

Fine by me.

Reviewed-by: Stephen Finucane <stephen at that.guru>

> ---
>  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



More information about the Patchwork mailing list