diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-05 11:32:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 11:32:09 (GMT) |
commit | 5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82 (patch) | |
tree | d7887a24b69199e50168fda98da920b16dc3197d /Include/internal | |
parent | 5b10b9824780b2181158902067912ee9e7b04657 (diff) | |
download | cpython-5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82.zip cpython-5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82.tar.gz cpython-5a02e0d1c8a526fc4e80a2fb8b4a9d5bc64c7d82.tar.bz2 |
bpo-36142: Add _PyPreConfig.utf8_mode (GH-12174)
* Move following fields from _PyCoreConfig to _PyPreConfig:
* coerce_c_locale
* coerce_c_locale_warn
* legacy_windows_stdio
* utf8_mode
* _PyPreConfig_ReadFromArgv() is now responsible to choose the
filesystem encoding
* _PyPreConfig_Write() now sets the LC_CTYPE locale
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_coreconfig.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Include/internal/pycore_coreconfig.h b/Include/internal/pycore_coreconfig.h index 5135969..8df182c 100644 --- a/Include/internal/pycore_coreconfig.h +++ b/Include/internal/pycore_coreconfig.h @@ -36,11 +36,24 @@ PyAPI_FUNC(int) _Py_SetArgcArgv(int argc, wchar_t * const *argv); /* --- _PyPreConfig ----------------------------------------------- */ +PyAPI_FUNC(int) _Py_str_to_int( + const char *str, + int *result); +PyAPI_FUNC(const wchar_t*) _Py_get_xoption( + int nxoption, + wchar_t * const *xoptions, + const wchar_t *name); + PyAPI_FUNC(void) _PyPreConfig_Clear(_PyPreConfig *config); PyAPI_FUNC(int) _PyPreConfig_Copy(_PyPreConfig *config, const _PyPreConfig *config2); PyAPI_FUNC(void) _PyPreConfig_GetGlobalConfig(_PyPreConfig *config); PyAPI_FUNC(void) _PyPreConfig_SetGlobalConfig(const _PyPreConfig *config); +PyAPI_FUNC(const char*) _PyPreConfig_GetEnv(const _PyPreConfig *config, + const char *name); +PyAPI_FUNC(void) _Py_get_env_flag(_PyPreConfig *config, + int *flag, + const char *name); PyAPI_FUNC(_PyInitError) _PyPreConfig_Read(_PyPreConfig *config); PyAPI_FUNC(int) _PyPreConfig_AsDict(const _PyPreConfig *config, PyObject *dict); |