Skip to content

Commit afd1770

Browse files
committed
Merge pull request docker-library#14 from infosiftr/utf8
Fix UTF-8 printing issues; see http://bugs.python.org/issue19846
2 parents 9f85a9a + dbe3e24 commit afd1770

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

2.7/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ RUN apt-get purge -y python python-minimal python2.7-minimal
88
RUN mkdir /usr/src/python
99
WORKDIR /usr/src/python
1010

11+
# http://bugs.python.org/issue19846
12+
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
13+
ENV LANG C.UTF-8
14+
1115
ENV PYTHON_VERSION 2.7.8
1216

1317
RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \

3.3/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ RUN apt-get purge -y python python-minimal python2.7-minimal
88
RUN mkdir /usr/src/python
99
WORKDIR /usr/src/python
1010

11+
# http://bugs.python.org/issue19846
12+
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
13+
ENV LANG C.UTF-8
14+
1115
ENV PYTHON_VERSION 3.3.5
1216

1317
RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \

3.4/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ RUN apt-get purge -y python python-minimal python2.7-minimal
88
RUN mkdir /usr/src/python
99
WORKDIR /usr/src/python
1010

11+
# http://bugs.python.org/issue19846
12+
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
13+
ENV LANG C.UTF-8
14+
1115
ENV PYTHON_VERSION 3.4.1
1216

1317
RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \

0 commit comments

Comments
 (0)
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