Searched refs:utf8_mode (Results 1 – 14 of 14) sorted by relevance
/third_party/python/Python/ |
D | preconfig.c | 296 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 …]
|
D | initconfig.c | 1826 if (preconfig->utf8_mode) { in config_get_stdio_errors() 1993 if (preconfig->utf8_mode) { in config_get_fs_encoding()
|
D | fileutils.c | 892 if (preconfig->utf8_mode) { in _Py_GetLocaleEncoding()
|
D | sysmodule.c | 2564 SetFlag(preconfig->utf8_mode); in set_flags_from_config()
|
/third_party/python/Include/cpython/ |
D | initconfig.h | 114 int utf8_mode; member
|
/third_party/python/Lib/ |
D | locale.py | 641 if sys.flags.utf8_mode: 660 if sys.flags.utf8_mode:
|
/third_party/python/Doc/c-api/ |
D | init_config.rst | 300 * 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/ |
D | test_embed.py | 350 utf8_mode=GET_DEFAULT_CONFIG, 357 utf8_mode=0,
|
D | test_sys.py | 603 self.assertIn(sys.flags.utf8_mode, {0, 1, 2})
|
D | test_builtin.py | 1187 @unittest.skipIf(sys.flags.utf8_mode, "utf-8 mode is enabled")
|
D | test_io.py | 2719 @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.c | 492 preconfig.utf8_mode = 1; in test_init_from_config()
|
/third_party/python/Doc/library/ |
D | sys.rst | 482 :const:`utf8_mode` :option:`-X utf8 <-X>` 499 Mode <devmode>` and the ``utf8_mode`` attribute for the new :option:`-X`
|
D | os.rst | 149 can be read from :data:`sys.flags.utf8_mode <sys.flags>`.
|