Lines Matching refs:utf8_mode
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()
626 config->utf8_mode = 0; in preconfig_init_utf8_mode()
633 config->utf8_mode = 1; in preconfig_init_utf8_mode()
641 config->utf8_mode = 1; in preconfig_init_utf8_mode()
644 config->utf8_mode = 0; in preconfig_init_utf8_mode()
655 if (config->utf8_mode < 0) { in preconfig_init_utf8_mode()
662 config->utf8_mode = 1; in preconfig_init_utf8_mode()
667 if (config->utf8_mode < 0) { in preconfig_init_utf8_mode()
668 config->utf8_mode = 0; in preconfig_init_utf8_mode()
783 assert(config->utf8_mode >= 0); in preconfig_read()
843 int utf8_mode = config->utf8_mode; in _PyPreConfig_Read() local
855 Py_UTF8Mode = config->utf8_mode; in _PyPreConfig_Read()
891 if (utf8_mode == -1) { in _PyPreConfig_Read()
892 if (config->utf8_mode == 1) { in _PyPreConfig_Read()
898 if (config->utf8_mode != utf8_mode) { in _PyPreConfig_Read()
909 int new_utf8_mode = config->utf8_mode; in _PyPreConfig_Read()
912 config->utf8_mode = new_utf8_mode; in _PyPreConfig_Read()