diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/fileobject.h | 4 | ||||
-rw-r--r-- | Include/pystate.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Include/fileobject.h b/Include/fileobject.h index 0b1678e..89e8dd6 100644 --- a/Include/fileobject.h +++ b/Include/fileobject.h @@ -28,6 +28,10 @@ PyAPI_DATA(const char *) Py_FileSystemDefaultEncodeErrors; #endif PyAPI_DATA(int) Py_HasFileSystemDefaultEncoding; +#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000 +PyAPI_DATA(int) Py_UTF8Mode; +#endif + /* Internal API The std printer acts as a preliminary sys.stderr until the new io diff --git a/Include/pystate.h b/Include/pystate.h index d149aeb..c7ea179 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -38,6 +38,7 @@ typedef struct { int show_alloc_count; /* -X showalloccount */ int dump_refs; /* PYTHONDUMPREFS */ int malloc_stats; /* PYTHONMALLOCSTATS */ + int utf8_mode; /* -X utf8 or PYTHONUTF8 environment variable */ } _PyCoreConfig; #define _PyCoreConfig_INIT (_PyCoreConfig){.use_hash_seed = -1} |