PEP 538: typo fixes
This commit is contained in:
parent
d1d344880b
commit
67346590a7
|
@ -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
|
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
|
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
|
Motivation
|
||||||
|
@ -563,7 +563,7 @@ for ``en_AU.UTF-8``), and one encoded with GB-18030 (the default encoding for
|
||||||
``zh_CN.gb18030``)::
|
``zh_CN.gb18030``)::
|
||||||
|
|
||||||
$ python3 -c 'open("utf8.txt", "wb").write("ℙƴ☂ℌøἤ\n".encode("utf-8"))'
|
$ 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::
|
On disk, we can see that these are two very different files::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue