summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-07-26 16:57:56 (GMT)
committerGitHub <noreply@github.com>2018-07-26 16:57:56 (GMT)
commit56b29b6d6fa3eb32bb1533ee3f21b1e7135648a0 (patch)
tree9c9ee5697c1c1dc873a21617fd4e9de30d04f0b2 /Include
parente42b705188271da108de42b55d9344642170aa2b (diff)
downloadcpython-56b29b6d6fa3eb32bb1533ee3f21b1e7135648a0.zip
cpython-56b29b6d6fa3eb32bb1533ee3f21b1e7135648a0.tar.gz
cpython-56b29b6d6fa3eb32bb1533ee3f21b1e7135648a0.tar.bz2
bpo-34170, test_embed: write Py_Initialize() tests (GH-8484)
Diffstat (limited to 'Include')
-rw-r--r--Include/pystate.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Include/pystate.h b/Include/pystate.h
index a35fc89..612e7de 100644
--- a/Include/pystate.h
+++ b/Include/pystate.h
@@ -55,7 +55,12 @@ typedef struct {
int malloc_stats; /* PYTHONMALLOCSTATS */
int coerce_c_locale; /* PYTHONCOERCECLOCALE, -1 means unknown */
int coerce_c_locale_warn; /* PYTHONCOERCECLOCALE=warn */
- int utf8_mode; /* PYTHONUTF8, -X utf8; -1 means unknown */
+
+ /* Enable UTF-8 mode?
+ Set by -X utf8 command line option and PYTHONUTF8 environment variable.
+ If set to -1 (default), inherit Py_UTF8Mode value. */
+ int utf8_mode;
+
wchar_t *pycache_prefix; /* PYTHONPYCACHEPREFIX, -X pycache_prefix=PATH */
wchar_t *program_name; /* Program name, see also Py_GetProgramName() */