summaryrefslogtreecommitdiff
path: root/Doc/using
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/using')
-rw-r--r--Doc/using/cmdline.rst13
1 files changed, 12 insertions, 1 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index e32f77e7ff..5cb9071770 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -439,6 +439,9 @@ Miscellaneous options
* Set the :attr:`~sys.flags.dev_mode` attribute of :attr:`sys.flags` to
``True``
+ * ``-X utf8`` enables the UTF-8 mode, whereas ``-X utf8=0`` disables the
+ UTF-8 mode.
+
It also allows passing arbitrary values and retrieving them through the
:data:`sys._xoptions` dictionary.
@@ -455,7 +458,7 @@ Miscellaneous options
The ``-X showalloccount`` option.
.. versionadded:: 3.7
- The ``-X importtime`` and ``-X dev`` options.
+ The ``-X importtime``, ``-X dev`` and ``-X utf8`` options.
Options you shouldn't use
@@ -816,6 +819,14 @@ conflict.
.. versionadded:: 3.7
+.. envvar:: PYTHONUTF8
+
+ If set to ``1``, enable the UTF-8 mode. If set to ``0``, disable the UTF-8
+ mode. Any other non-empty string cause an error.
+
+ .. versionadded:: 3.7
+
+
Debug-mode variables
~~~~~~~~~~~~~~~~~~~~