Home
last modified time | relevance | path

Searched refs:utf8_mode (Results 1 – 14 of 14) sorted by relevance

/third_party/python/Python/
Dpreconfig.c296 config->utf8_mode = 0; in _PyPreConfig_InitCompatConfig()
332 config->utf8_mode = -1; in PyPreConfig_InitPythonConfig()
348 config->utf8_mode = 0; in PyPreConfig_InitIsolatedConfig()
399 COPY_ATTR(utf8_mode); in preconfig_copy()
439 SET_ITEM_INT(utf8_mode); in _PyPreConfig_AsDict()
492 config->utf8_mode = Py_UTF8Mode; in preconfig_get_global_vars()
520 COPY_FLAG(utf8_mode, Py_UTF8Mode); in preconfig_set_global_vars()
608 config->utf8_mode = 0; in preconfig_init_utf8_mode()
612 if (config->utf8_mode >= 0) { in preconfig_init_utf8_mode()
623 config->utf8_mode = 1; in preconfig_init_utf8_mode()
[all …]
Dinitconfig.c1886 if (preconfig->utf8_mode) { in config_get_stdio_errors()
2053 if (preconfig->utf8_mode) { in config_get_fs_encoding()
Dfileutils.c892 if (preconfig->utf8_mode) { in _Py_GetLocaleEncoding()
Dsysmodule.c2607 SetFlag(preconfig->utf8_mode); in set_flags_from_config()
/third_party/python/Include/cpython/
Dinitconfig.h114 int utf8_mode; member
/third_party/python/Lib/
Dlocale.py641 if sys.flags.utf8_mode:
660 if sys.flags.utf8_mode:
/third_party/python/Doc/c-api/
Dinit_config.rst300 * Set :c:member:`PyPreConfig.utf8_mode` to ``0``,
328 .. c:member:: int utf8_mode
348 (:c:member:`PyPreConfig.utf8_mode`)
406 preconfig.utf8_mode = 1;
690 * ``"utf-8"`` if :c:member:`PyPreConfig.utf8_mode` is non-zero.
1075 * ``"UTF-8"`` if :c:member:`PyPreConfig.utf8_mode` is non-zero.
1081 * ``"surrogateescape"`` if :c:member:`PyPreConfig.utf8_mode` is non-zero,
/third_party/python/Lib/test/
Dtest_embed.py350 utf8_mode=GET_DEFAULT_CONFIG,
357 utf8_mode=0,
Dtest_sys.py609 self.assertIn(sys.flags.utf8_mode, {0, 1, 2})
Dtest_builtin.py1187 @unittest.skipIf(sys.flags.utf8_mode, "utf-8 mode is enabled")
Dtest_io.py2719 @unittest.skipIf(sys.flags.utf8_mode, "utf-8 mode is enabled")
2741 @unittest.skipIf(sys.flags.utf8_mode, "utf-8 mode is enabled")
/third_party/python/Programs/
D_testembed.c492 preconfig.utf8_mode = 1; in test_init_from_config()
/third_party/python/Doc/library/
Dsys.rst482 :const:`utf8_mode` :option:`-X utf8 <-X>`
500 Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X`
Dos.rst149 can be read from :data:`sys.flags.utf8_mode <sys.flags>`.