diff options
author | Inada Naoki <songofacandy@gmail.com> | 2022-04-04 02:46:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 02:46:57 (GMT) |
commit | 4216dce04b7d3f329beaaafc82a77c4ac6cf4d57 (patch) | |
tree | b3ff3df025ddb3c383beb156fd150df62d40ac8e /Include | |
parent | 6db2db91b96aaa1270c200ec931a2250fe2799c7 (diff) | |
download | cpython-4216dce04b7d3f329beaaafc82a77c4ac6cf4d57.zip cpython-4216dce04b7d3f329beaaafc82a77c4ac6cf4d57.tar.gz cpython-4216dce04b7d3f329beaaafc82a77c4ac6cf4d57.tar.bz2 |
bpo-47000: Make `io.text_encoding()` respects UTF-8 mode (GH-32003)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_global_strings.h | 1 | ||||
-rw-r--r-- | Include/internal/pycore_runtime_init.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_global_strings.h b/Include/internal/pycore_global_strings.h index 3e533fd..833ff27 100644 --- a/Include/internal/pycore_global_strings.h +++ b/Include/internal/pycore_global_strings.h @@ -48,6 +48,7 @@ struct _Py_global_strings { STRUCT_FOR_STR(newline, "\n") STRUCT_FOR_STR(open_br, "{") STRUCT_FOR_STR(percent, "%") + STRUCT_FOR_STR(utf_8, "utf-8") } literals; struct { diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h index d5690d8..fd925b3 100644 --- a/Include/internal/pycore_runtime_init.h +++ b/Include/internal/pycore_runtime_init.h @@ -672,6 +672,7 @@ extern "C" { INIT_STR(newline, "\n"), \ INIT_STR(open_br, "{"), \ INIT_STR(percent, "%"), \ + INIT_STR(utf_8, "utf-8"), \ }, \ .identifiers = { \ INIT_ID(False), \ |