Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-36775: _PyCoreConfig only uses wchar_t* #13062

Merged
merged 4 commits into from
May 2, 2019
Merged

bpo-36775: _PyCoreConfig only uses wchar_t* #13062

merged 4 commits into from
May 2, 2019

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