This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 ncoghlan
收信人 Jan Niklas Hasse, abarry, akira, barry, deleted250130, ezio.melotti, lemburg, methane, ncoghlan, r.david.murray, vstinner, yan12125
日期 2017-01-06.02:50:52
SpamBayes Score -1.0
Marked as misclassified
Message-id <1483671053.45.0.732754313997.issue28180@psf.upfronthosting.co.za>
In-reply-to
内容
Docker containers don't have a locale set by default - the approach proposed in PEP 528 actually comes from the way I configure Docker images (which in turn comes from Armin Ronacher's recommendations in click for Python 3 locale handling).

In the Dockerfile for Fedora based containers I add:

    ENV LC_ALL=C.UTF-8
    ENV LANG=C.UTF-8

while in CentOS 7 based containers I add:

    ENV LC_ALL=en_US.UTF-8
    ENV LANG=en_US.UTF-8

And with those settings, Python 3 based containers just work (my laptop is running en_AU.UTF-8 locally)
历史
日期 用户 动作 参数
2017-01-06 02:50:53ncoghlan修改recipients: + ncoghlan, lemburg, barry, vstinner, ezio.melotti, r.david.murray, methane, akira, deleted250130, yan12125, abarry, Jan Niklas Hasse
2017-01-06 02:50:53ncoghlan修改messageid: <1483671053.45.0.732754313997.issue28180@psf.upfronthosting.co.za>
2017-01-06 02:50:53ncoghlan链接issue28180 messages
2017-01-06 02:50:52ncoghlan创建