[Python-ideas] PEP 540: Add a new UTF-8 mode
Stephen J. Turnbull
turnbull.stephen.fw at u.tsukuba.ac.jp
Wed Jan 11 02:05:01 EST 2017
INADA Naoki writes:
> When talking about general Docker image, using C locale is OK for
> most cases. In other words, images using C locale is properly
> configured.
s/properly/compatibly/. "Proper" has strong connotations of
"according to protocol". Configuring LC_CTYPE for ASCII expecting
applications to say "You're lying!" and spew UTF-8 anyway is not
"proper".
That kind of thing makes me very nervous, and I think justifiably so.
And it's only *sufficient* to justify a change to Python's defaults if
Python checks for and accurately identifies when it's in a container.
Anyway, I need to look more carefully at the actual PEPs and see if
there's something concrete to worry about. But remember, we have
about 18 months to chew over this if necessary -- I'm only asking for
a few more days (until after the "cripple the minds of Japanese youth
day", er, "University Admissions Center Examination" this weekend ;-).
Steve
More information about the Python-ideas
mailing list