◐ Shell
reader mode source ↗
Skip to content

bpo-32030: Add _Py_EncodeLocaleRaw()#4961

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:encode_raw
Dec 21, 2017
Merged

bpo-32030: Add _Py_EncodeLocaleRaw()#4961
vstinner merged 1 commit into
python:masterfrom
vstinner:encode_raw

Conversation

@vstinner

@vstinner vstinner commented Dec 21, 2017

Copy link
Copy Markdown
Member

Replace Py_EncodeLocale() with _Py_EncodeLocaleRaw() in:

  • _Py_wfopen()
  • _Py_wreadlink()
  • _Py_wrealpath()
  • _Py_wstat()
  • pymain_open_filename()

These functions are called early during Python intialization, only
the RAW memory allocator must be used.

https://bugs.python.org/issue32030

Replace Py_EncodeLocale() with _Py_EncodeLocaleRaw() in:

* _Py_wfopen()
* _Py_wreadlink()
* _Py_wrealpath()
* _Py_wstat()
* pymain_open_filename()

These functions are called early during Python intialization, only
the RAW memory allocator must be used.
@vstinner vstinner merged commit 9dd7620 into python:master Dec 21, 2017
@vstinner vstinner deleted the encode_raw branch December 21, 2017 15:20
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.

4 participants