Skip to content

bpo-36775: _PyCoreConfig only uses wchar_t*#13062

Merged
vstinner merged 4 commits intopython:masterfrom
vstinner:wchar_encoding
May 2, 2019
Merged

bpo-36775: _PyCoreConfig only uses wchar_t*#13062
vstinner merged 4 commits intopython:masterfrom
vstinner:wchar_encoding

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented May 2, 2019

_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().

https://bugs.python.org/issue36775

_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().
vstinner added 3 commits May 2, 2019 14:19
* Rename _PyCoreConfig_SetWideString to _PyCoreConfig_SetStringt
* Rename _PyCoreConfig_SetWideStringFromString
  to _PyCoreConfig_DecodeLocale
@vstinner vstinner merged commit 709d23d into python:master May 2, 2019
@vstinner vstinner deleted the wchar_encoding branch May 2, 2019 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants