]> granicus.if.org Git - python/commit
bpo-36775: _PyCoreConfig only uses wchar_t* (GH-13062)
authorVictor Stinner <vstinner@redhat.com>
Thu, 2 May 2019 18:56:30 +0000 (14:56 -0400)
committerGitHub <noreply@github.com>
Thu, 2 May 2019 18:56:30 +0000 (14:56 -0400)
commit709d23dee69e700b87d5a4cb59e149d0e1af7993
treeb06aafe79f83137a3c85649bcebf1fbfd2ea1240
parent6ae2bbbdfcb8969d1d362b17c2fbd5a684fa4f9d
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().
Include/cpython/coreconfig.h
Include/internal/pycore_coreconfig.h
Include/internal/pycore_pylifecycle.h
Include/internal/pycore_pystate.h
Objects/stringlib/codecs.h
Objects/unicodeobject.c
Programs/_testembed.c
Python/coreconfig.c
Python/preconfig.c
Python/pylifecycle.c
Python/sysmodule.c