mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
bpo-36775: _PyCoreConfig only uses wchar_t* (GH-13062)
_PyCoreConfig: Change filesystem_encoding, filesystem_errors, stdio_encoding and stdio_errors fields type from char* to wchar_t*. Changes: * PyInterpreterState: replace fscodec_initialized (int) with fs_codec structure. * Add get_error_handler_wide() and unicode_encode_utf8() helper functions. * Add error_handler parameter to unicode_encode_locale() and unicode_decode_locale(). * Remove _PyCoreConfig_SetString(). * Rename _PyCoreConfig_SetWideString() to _PyCoreConfig_SetString(). * Rename _PyCoreConfig_SetWideStringFromString() to _PyCoreConfig_DecodeLocale().
This commit is contained in:
parent
6ae2bbbdfc
commit
709d23dee6
11 changed files with 357 additions and 220 deletions
|
@ -14,7 +14,10 @@
|
|||
/* --- File system encoding/errors -------------------------------- */
|
||||
|
||||
/* The filesystem encoding is chosen by config_init_fs_encoding(),
|
||||
see also initfsencoding(). */
|
||||
see also initfsencoding().
|
||||
|
||||
Py_FileSystemDefaultEncoding and Py_FileSystemDefaultEncodeErrors
|
||||
are encoded to UTF-8. */
|
||||
const char *Py_FileSystemDefaultEncoding = NULL;
|
||||
int Py_HasFileSystemDefaultEncoding = 0;
|
||||
const char *Py_FileSystemDefaultEncodeErrors = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue