Home
last modified time | relevance | path

Searched refs:coerce_c_locale (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_c_locale_coercion.py293 coerce_c_locale, argument
325 if coerce_c_locale is not None:
326 base_var_dict["PYTHONCOERCECLOCALE"] = coerce_c_locale
330 PYTHONCOERCECLOCALE=coerce_c_locale):
355 PYTHONCOERCECLOCALE=coerce_c_locale):
367 self._check_c_locale_coercion("utf-8", "utf-8", coerce_c_locale=None)
373 self._check_c_locale_coercion("utf-8", "utf-8", coerce_c_locale=setting)
378 coerce_c_locale="warn",
386 coerce_c_locale="0",
391 coerce_c_locale="0",
[all …]
/external/python/cpython3/Modules/
Dmain.c1946 if (config->coerce_c_locale < 0) { in config_read_env_vars()
1947 config->coerce_c_locale = 0; in config_read_env_vars()
1954 if (config->coerce_c_locale < 0) { in config_read_env_vars()
1955 config->coerce_c_locale = 1; in config_read_env_vars()
2134 if (config->coerce_c_locale && !locale_coerced) { in pymain_read_conf()
2161 int new_coerce_c_locale = config->coerce_c_locale; in pymain_read_conf()
2174 config->coerce_c_locale = new_coerce_c_locale; in pymain_read_conf()
2198 if (config->coerce_c_locale != 0) { in config_init_locale()
2201 config->coerce_c_locale = 1; in config_init_locale()
2204 config->coerce_c_locale = 0; in config_init_locale()
[all …]
/external/python/cpython3/Include/
Dpystate.h44 int coerce_c_locale; /* PYTHONCOERCECLOCALE, -1 means unknown */ member
84 .coerce_c_locale = -1, \
/external/python/cpython3/Python/
Dpylifecycle.c531 const char *coerce_c_locale; in _Py_SetLocaleFromEnv() local
562 coerce_c_locale = getenv("PYTHONCOERCECLOCALE"); in _Py_SetLocaleFromEnv()
563 if (coerce_c_locale == NULL || strcmp(coerce_c_locale, "0") != 0) { in _Py_SetLocaleFromEnv()
/external/python/cpython3/Programs/
D_testembed.c553 config.coerce_c_locale = 0; in test_init_isolated()