From 2c06746f8a82729f9265c1e17c29b1e937af7441 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 25 Apr 2018 13:03:02 -0700 Subject: [PATCH] Set PYTHONIOENCODING for Python 2 --- 2.7/alpine3.4/Dockerfile | 2 ++ 2.7/alpine3.6/Dockerfile | 2 ++ 2.7/alpine3.7/Dockerfile | 2 ++ 2.7/jessie/Dockerfile | 2 ++ 2.7/jessie/slim/Dockerfile | 2 ++ 2.7/stretch/Dockerfile | 2 ++ 2.7/stretch/slim/Dockerfile | 2 ++ 2.7/wheezy/Dockerfile | 2 ++ 8 files changed, 16 insertions(+) diff --git a/2.7/alpine3.4/Dockerfile b/2.7/alpine3.4/Dockerfile index dea640830..289b61659 100644 --- a/2.7/alpine3.4/Dockerfile +++ b/2.7/alpine3.4/Dockerfile @@ -6,6 +6,8 @@ ENV PATH /usr/local/bin:$PATH # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 +# https://github.com/docker-library/python/issues/147 +ENV PYTHONIOENCODING UTF-8 # install ca-certificates so that HTTPS works consistently # the other runtime dependencies for Python are installed later diff --git a/2.7/alpine3.6/Dockerfile b/2.7/alpine3.6/Dockerfile index d29950c68..5ea78ae9e 100644 --- a/2.7/alpine3.6/Dockerfile +++ b/2.7/alpine3.6/Dockerfile @@ -6,6 +6,8 @@ ENV PATH /usr/local/bin:$PATH # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 +# https://github.com/docker-library/python/issues/147 +ENV PYTHONIOENCODING UTF-8 # install ca-certificates so that HTTPS works consistently # the other runtime dependencies for Python are installed later diff --git a/2.7/alpine3.7/Dockerfile b/2.7/alpine3.7/Dockerfile index b70a5c2bb..51db090fe 100644 --- a/2.7/alpine3.7/Dockerfile +++ b/2.7/alpine3.7/Dockerfile @@ -6,6 +6,8 @@ ENV PATH /usr/local/bin:$PATH # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 +# https://github.com/docker-library/python/issues/147 +ENV PYTHONIOENCODING UTF-8 # install ca-certificates so that HTTPS works consistently # the other runtime dependencies for Python are installed later diff --git a/2.7/jessie/Dockerfile b/2.7/jessie/Dockerfile index 931a9dcf4..59e3b4486 100644 --- a/2.7/jessie/Dockerfile +++ b/2.7/jessie/Dockerfile @@ -6,6 +6,8 @@ ENV PATH /usr/local/bin:$PATH # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 +# https://github.com/docker-library/python/issues/147 +ENV PYTHONIOENCODING UTF-8 # runtime dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ diff --git a/2.7/jessie/slim/Dockerfile b/2.7/jessie/slim/Dockerfile index da399313b..3a10d57a7 100644 --- a/2.7/jessie/slim/Dockerfile +++ b/2.7/jessie/slim/Dockerfile @@ -6,6 +6,8 @@ ENV PATH /usr/local/bin:$PATH # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 +# https://github.com/docker-library/python/issues/147 +ENV PYTHONIOENCODING UTF-8 # runtime dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ diff --git a/2.7/stretch/Dockerfile b/2.7/stretch/Dockerfile index ee480c3dc..e85ceee87 100644 --- a/2.7/stretch/Dockerfile +++ b/2.7/stretch/Dockerfile @@ -6,6 +6,8 @@ ENV PATH /usr/local/bin:$PATH # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 +# https://github.com/docker-library/python/issues/147 +ENV PYTHONIOENCODING UTF-8 # runtime dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ diff --git a/2.7/stretch/slim/Dockerfile b/2.7/stretch/slim/Dockerfile index a5ca56531..13439988c 100644 --- a/2.7/stretch/slim/Dockerfile +++ b/2.7/stretch/slim/Dockerfile @@ -6,6 +6,8 @@ ENV PATH /usr/local/bin:$PATH # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 +# https://github.com/docker-library/python/issues/147 +ENV PYTHONIOENCODING UTF-8 # runtime dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ diff --git a/2.7/wheezy/Dockerfile b/2.7/wheezy/Dockerfile index 9515ddf60..eb92bcd28 100644 --- a/2.7/wheezy/Dockerfile +++ b/2.7/wheezy/Dockerfile @@ -6,6 +6,8 @@ ENV PATH /usr/local/bin:$PATH # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 +# https://github.com/docker-library/python/issues/147 +ENV PYTHONIOENCODING UTF-8 # runtime dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy