Skip to content

Commit

Permalink
PEP 538: typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ncoghlan committed Feb 6, 2017
1 parent d1d3448 commit 6734659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pep-0538.txt
Expand Up @@ -190,7 +190,7 @@ relying on that setting change.

As a result of that change, the ``LC_CTYPE=en_US.UTF-8`` legacy fallback was
removed from the list of UTF-8 locales tried as a coercion target, with CPython
instead rely solely on the C locale text encoding bypass in such cases.
instead relying solely on the C locale text encoding bypass in such cases.


Motivation
Expand Down Expand Up @@ -563,7 +563,7 @@ for ``en_AU.UTF-8``), and one encoded with GB-18030 (the default encoding for
``zh_CN.gb18030``)::

$ python3 -c 'open("utf8.txt", "wb").write("ℙƴ☂ℌøἤ\n".encode("utf-8"))'
$ python3 -c 'open("gb18030.txt", "wb"); f.write("ℙƴ☂ℌøἤ\n".encode("gb18030"))'
$ python3 -c 'open("gb18030.txt", "wb").write("ℙƴ☂ℌøἤ\n".encode("gb18030"))'

On disk, we can see that these are two very different files::

Expand Down

0 comments on commit 6734659

Please sign in to comment.