From dbe3e241f4c3263a81a888896f5126861807b3db Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 26 Sep 2014 09:27:20 -0600 Subject: [PATCH] Fix UTF-8 printing issues; see http://bugs.python.org/issue19846 --- 2.7/Dockerfile | 4 ++++ 3.3/Dockerfile | 4 ++++ 3.4/Dockerfile | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/2.7/Dockerfile b/2.7/Dockerfile index dd99d7727..6ede619fb 100644 --- a/2.7/Dockerfile +++ b/2.7/Dockerfile @@ -8,6 +8,10 @@ RUN apt-get purge -y python python-minimal python2.7-minimal RUN mkdir /usr/src/python WORKDIR /usr/src/python +# 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 + ENV PYTHON_VERSION 2.7.8 RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \ diff --git a/3.3/Dockerfile b/3.3/Dockerfile index 2b4a4c3da..60d213bb2 100644 --- a/3.3/Dockerfile +++ b/3.3/Dockerfile @@ -8,6 +8,10 @@ RUN apt-get purge -y python python-minimal python2.7-minimal RUN mkdir /usr/src/python WORKDIR /usr/src/python +# 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 + ENV PYTHON_VERSION 3.3.5 RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \ diff --git a/3.4/Dockerfile b/3.4/Dockerfile index 4fd4a97da..dab31cc42 100644 --- a/3.4/Dockerfile +++ b/3.4/Dockerfile @@ -8,6 +8,10 @@ RUN apt-get purge -y python python-minimal python2.7-minimal RUN mkdir /usr/src/python WORKDIR /usr/src/python +# 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 + ENV PYTHON_VERSION 3.4.1 RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \