diff --git a/3.10/alpine3.14/Dockerfile b/3.10/alpine3.14/Dockerfile index 6cfe50635..01515ef89 100644 --- a/3.10/alpine3.14/Dockerfile +++ b/3.10/alpine3.14/Dockerfile @@ -9,6 +9,10 @@ FROM alpine:3.14 # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apk add --no-cache \ diff --git a/3.10/alpine3.15/Dockerfile b/3.10/alpine3.15/Dockerfile index 299b1e599..1d742b92e 100644 --- a/3.10/alpine3.15/Dockerfile +++ b/3.10/alpine3.15/Dockerfile @@ -9,6 +9,10 @@ FROM alpine:3.15 # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apk add --no-cache \ diff --git a/3.10/bullseye/Dockerfile b/3.10/bullseye/Dockerfile index aa76b43a1..8677eedca 100644 --- a/3.10/bullseye/Dockerfile +++ b/3.10/bullseye/Dockerfile @@ -9,6 +9,10 @@ FROM buildpack-deps:bullseye # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.10/buster/Dockerfile b/3.10/buster/Dockerfile index d402d8bc8..d602e2c52 100644 --- a/3.10/buster/Dockerfile +++ b/3.10/buster/Dockerfile @@ -9,6 +9,10 @@ FROM buildpack-deps:buster # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.10/slim-bullseye/Dockerfile b/3.10/slim-bullseye/Dockerfile index 5fa60f16b..b6edad98b 100644 --- a/3.10/slim-bullseye/Dockerfile +++ b/3.10/slim-bullseye/Dockerfile @@ -9,6 +9,10 @@ FROM debian:bullseye-slim # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.10/slim-buster/Dockerfile b/3.10/slim-buster/Dockerfile index 1f5dc322b..f7ba6cd85 100644 --- a/3.10/slim-buster/Dockerfile +++ b/3.10/slim-buster/Dockerfile @@ -9,6 +9,10 @@ FROM debian:buster-slim # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.11-rc/alpine3.14/Dockerfile b/3.11-rc/alpine3.14/Dockerfile index 701ae2bb9..ba48cde6e 100644 --- a/3.11-rc/alpine3.14/Dockerfile +++ b/3.11-rc/alpine3.14/Dockerfile @@ -9,6 +9,10 @@ FROM alpine:3.14 # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apk add --no-cache \ diff --git a/3.11-rc/alpine3.15/Dockerfile b/3.11-rc/alpine3.15/Dockerfile index e63a8a014..09eb8fd7a 100644 --- a/3.11-rc/alpine3.15/Dockerfile +++ b/3.11-rc/alpine3.15/Dockerfile @@ -9,6 +9,10 @@ FROM alpine:3.15 # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apk add --no-cache \ diff --git a/3.11-rc/bullseye/Dockerfile b/3.11-rc/bullseye/Dockerfile index 2016d04d8..d77378691 100644 --- a/3.11-rc/bullseye/Dockerfile +++ b/3.11-rc/bullseye/Dockerfile @@ -9,6 +9,10 @@ FROM buildpack-deps:bullseye # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.11-rc/buster/Dockerfile b/3.11-rc/buster/Dockerfile index d1857b31e..26aca6c8d 100644 --- a/3.11-rc/buster/Dockerfile +++ b/3.11-rc/buster/Dockerfile @@ -9,6 +9,10 @@ FROM buildpack-deps:buster # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.11-rc/slim-bullseye/Dockerfile b/3.11-rc/slim-bullseye/Dockerfile index 071f55249..f3727f01d 100644 --- a/3.11-rc/slim-bullseye/Dockerfile +++ b/3.11-rc/slim-bullseye/Dockerfile @@ -9,6 +9,10 @@ FROM debian:bullseye-slim # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.11-rc/slim-buster/Dockerfile b/3.11-rc/slim-buster/Dockerfile index 2bd587093..ff1a4b923 100644 --- a/3.11-rc/slim-buster/Dockerfile +++ b/3.11-rc/slim-buster/Dockerfile @@ -9,6 +9,10 @@ FROM debian:buster-slim # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.7/alpine3.14/Dockerfile b/3.7/alpine3.14/Dockerfile index 3928f5d44..8ed2a66bd 100644 --- a/3.7/alpine3.14/Dockerfile +++ b/3.7/alpine3.14/Dockerfile @@ -9,6 +9,10 @@ FROM alpine:3.14 # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apk add --no-cache \ diff --git a/3.7/alpine3.15/Dockerfile b/3.7/alpine3.15/Dockerfile index a5c431791..6b909087f 100644 --- a/3.7/alpine3.15/Dockerfile +++ b/3.7/alpine3.15/Dockerfile @@ -9,6 +9,10 @@ FROM alpine:3.15 # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apk add --no-cache \ diff --git a/3.7/bullseye/Dockerfile b/3.7/bullseye/Dockerfile index 99c3d92f6..62c78d88d 100644 --- a/3.7/bullseye/Dockerfile +++ b/3.7/bullseye/Dockerfile @@ -9,6 +9,10 @@ FROM buildpack-deps:bullseye # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.7/buster/Dockerfile b/3.7/buster/Dockerfile index 1d9009a4f..e13d019ec 100644 --- a/3.7/buster/Dockerfile +++ b/3.7/buster/Dockerfile @@ -9,6 +9,10 @@ FROM buildpack-deps:buster # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.7/slim-bullseye/Dockerfile b/3.7/slim-bullseye/Dockerfile index d9f1ed395..def38217f 100644 --- a/3.7/slim-bullseye/Dockerfile +++ b/3.7/slim-bullseye/Dockerfile @@ -9,6 +9,10 @@ FROM debian:bullseye-slim # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.7/slim-buster/Dockerfile b/3.7/slim-buster/Dockerfile index 840b07cf0..63a07bd70 100644 --- a/3.7/slim-buster/Dockerfile +++ b/3.7/slim-buster/Dockerfile @@ -9,6 +9,10 @@ FROM debian:buster-slim # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.8/alpine3.14/Dockerfile b/3.8/alpine3.14/Dockerfile index 8cd0e1e5a..b8a033ef0 100644 --- a/3.8/alpine3.14/Dockerfile +++ b/3.8/alpine3.14/Dockerfile @@ -9,6 +9,10 @@ FROM alpine:3.14 # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apk add --no-cache \ diff --git a/3.8/alpine3.15/Dockerfile b/3.8/alpine3.15/Dockerfile index 7f1fdc153..87e405a30 100644 --- a/3.8/alpine3.15/Dockerfile +++ b/3.8/alpine3.15/Dockerfile @@ -9,6 +9,10 @@ FROM alpine:3.15 # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apk add --no-cache \ diff --git a/3.8/bullseye/Dockerfile b/3.8/bullseye/Dockerfile index 91de2e4f8..f4055a299 100644 --- a/3.8/bullseye/Dockerfile +++ b/3.8/bullseye/Dockerfile @@ -9,6 +9,10 @@ FROM buildpack-deps:bullseye # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.8/buster/Dockerfile b/3.8/buster/Dockerfile index d27955ac6..74caf6085 100644 --- a/3.8/buster/Dockerfile +++ b/3.8/buster/Dockerfile @@ -9,6 +9,10 @@ FROM buildpack-deps:buster # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.8/slim-bullseye/Dockerfile b/3.8/slim-bullseye/Dockerfile index beba07e0d..26aa0803b 100644 --- a/3.8/slim-bullseye/Dockerfile +++ b/3.8/slim-bullseye/Dockerfile @@ -9,6 +9,10 @@ FROM debian:bullseye-slim # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.8/slim-buster/Dockerfile b/3.8/slim-buster/Dockerfile index add71d5cb..2bf74279f 100644 --- a/3.8/slim-buster/Dockerfile +++ b/3.8/slim-buster/Dockerfile @@ -9,6 +9,10 @@ FROM debian:buster-slim # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.9/alpine3.14/Dockerfile b/3.9/alpine3.14/Dockerfile index d989c73b6..ff25c7d74 100644 --- a/3.9/alpine3.14/Dockerfile +++ b/3.9/alpine3.14/Dockerfile @@ -9,6 +9,10 @@ FROM alpine:3.14 # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apk add --no-cache \ diff --git a/3.9/alpine3.15/Dockerfile b/3.9/alpine3.15/Dockerfile index 28322ad56..fd96682b5 100644 --- a/3.9/alpine3.15/Dockerfile +++ b/3.9/alpine3.15/Dockerfile @@ -9,6 +9,10 @@ FROM alpine:3.15 # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apk add --no-cache \ diff --git a/3.9/bullseye/Dockerfile b/3.9/bullseye/Dockerfile index 7f43112d5..9f277f527 100644 --- a/3.9/bullseye/Dockerfile +++ b/3.9/bullseye/Dockerfile @@ -9,6 +9,10 @@ FROM buildpack-deps:bullseye # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.9/buster/Dockerfile b/3.9/buster/Dockerfile index 477a484bc..cd7252ce1 100644 --- a/3.9/buster/Dockerfile +++ b/3.9/buster/Dockerfile @@ -9,6 +9,10 @@ FROM buildpack-deps:buster # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.9/slim-bullseye/Dockerfile b/3.9/slim-bullseye/Dockerfile index b1b404552..8604e34a6 100644 --- a/3.9/slim-bullseye/Dockerfile +++ b/3.9/slim-bullseye/Dockerfile @@ -9,6 +9,10 @@ FROM debian:bullseye-slim # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/3.9/slim-buster/Dockerfile b/3.9/slim-buster/Dockerfile index b758ace5e..7ff174c3d 100644 --- a/3.9/slim-buster/Dockerfile +++ b/3.9/slim-buster/Dockerfile @@ -9,6 +9,10 @@ FROM debian:buster-slim # ensure local python is preferred over distribution python 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 + # runtime dependencies RUN set -eux; \ apt-get update; \ diff --git a/Dockerfile-linux.template b/Dockerfile-linux.template index 5c8c0c742..632e86cde 100644 --- a/Dockerfile-linux.template +++ b/Dockerfile-linux.template @@ -19,6 +19,10 @@ FROM buildpack-deps:{{ env.variant }} # ensure local python is preferred over distribution python 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 + # runtime dependencies {{ if is_alpine then ( -}} RUN set -eux; \