File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,20 @@ to 1 and ``-bb`` sets :c:data:`Py_BytesWarningFlag` to 2.
207
207
Set by the :option: `-u ` option and the :envvar: `PYTHONUNBUFFERED `
208
208
environment variable.
209
209
210
+ .. c :var :: Py_UTF8Mode
211
+
212
+ Enable Cpython utf-8 mode, which ignores the locale settings, and
213
+ uses the UTF-8 encoding by default; changes `sys.stdin ` and
214
+ `sys.stdout ` error handlers to ``surrogateescape ``. By default,
215
+ it is enabled in the POSIX locale.
216
+
217
+ Set by the :option: `-X ` ``utf8 `` option and the :envvar: `PYTHONUTF8 `
218
+ environment variable.
219
+
220
+ See :pep: `540 ` for more details.
221
+
222
+ .. versionadded :: 3.7
223
+
210
224
.. c :var :: Py_VerboseFlag
211
225
212
226
Print a message each time a module is initialized, showing the place
You can’t perform that action at this time.
0 commit comments