Home
last modified time | relevance | path

Searched refs:utf8_mode (Results 1 - 15 of 15) sorted by relevance

/third_party/python/Python/
H A Dpreconfig.c292 config->utf8_mode = 0; in _PyPreConfig_InitCompatConfig()
318 config->utf8_mode = -1; in PyPreConfig_InitPythonConfig()
334 config->utf8_mode = 0; in PyPreConfig_InitIsolatedConfig()
385 COPY_ATTR(utf8_mode); in preconfig_copy()
425 SET_ITEM_INT(utf8_mode); in _PyPreConfig_AsDict()
478 config->utf8_mode = Py_UTF8Mode; in preconfig_get_global_vars()
506 COPY_FLAG(utf8_mode, Py_UTF8Mode); in preconfig_set_global_vars()
594 config->utf8_mode = 0; in preconfig_init_utf8_mode()
598 if (config->utf8_mode >= 0) { in preconfig_init_utf8_mode()
609 config->utf8_mode in preconfig_init_utf8_mode()
829 int utf8_mode = config->utf8_mode; _PyPreConfig_Read() local
[all...]
H A Dinitconfig.c1854 if (preconfig->utf8_mode) { in config_get_stdio_errors()
1889 if (preconfig->utf8_mode) { in config_get_locale_encoding()
2027 if (preconfig->utf8_mode) { in config_get_fs_encoding()
H A Dsysmodule.c2530 {"utf8_mode", "-X utf8"},
2579 SetFlag(preconfig->utf8_mode); in set_flags_from_config()
H A Dfileutils.c96 if (_PyRuntime.preconfig.utf8_mode) { in _Py_device_encoding()
/third_party/python/Include/cpython/
H A Dinitconfig.h114 int utf8_mode; member
/third_party/python/Lib/
H A Dlocale.py673 if sys.flags.utf8_mode:
687 if sys.flags.utf8_mode:
H A D_pyio.py59 if sys.flags.utf8_mode:
H A Dsubprocess.py375 if sys.flags.utf8_mode:
/third_party/python/Modules/_io/
H A D_iomodule.c485 if (preconfig->utf8_mode) { in _io_text_encoding_impl()
H A Dtextio.c1122 if (encoding == NULL && _PyRuntime.preconfig.utf8_mode) { in _io_TextIOWrapper___init___impl()
/third_party/python/Lib/test/
H A Dtest_embed.py407 'utf8_mode': 0,
417 utf8_mode=GET_DEFAULT_CONFIG, variable in InitConfigTests
424 utf8_mode=0, variable in InitConfigTests
542 ('Py_UTF8Mode', 'utf8_mode'),
656 expected_preconfig['utf8_mode'] = self.IGNORE_CONFIG
658 if expected_preconfig['utf8_mode'] == 1:
809 'utf8_mode': 1,
833 'utf8_mode': 1,
927 'utf8_mode': 1,
H A Dtest_sys.py685 "hash_randomization", "isolated", "dev_mode", "utf8_mode",
694 self.assertIn(sys.flags.utf8_mode, {0, 1, 2})
H A Dtest_builtin.py1320 @unittest.skipIf(sys.flags.utf8_mode, "utf-8 mode is enabled")
H A Dtest_io.py2727 @unittest.skipIf(sys.flags.utf8_mode, "utf-8 mode is enabled")
4311 # based on sys.flags.utf8_mode
/third_party/python/Programs/
H A D_testembed.c568 preconfig.utf8_mode = 1; in test_init_from_config()

Completed in 41 milliseconds