]> granicus.if.org Git - python/commit
bpo-32030: Add _Py_EncodeLocaleRaw() (#4961)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 21 Dec 2017 15:20:32 +0000 (16:20 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Dec 2017 15:20:32 +0000 (16:20 +0100)
commit9dd762013fd9fcf975ad51700b55d050ca9ed60e
tree67e0bcd6b3884cfa23d983bb722ee492c8c5aad9
parent4a02543cf97e8cbf9293741379f977b85531e4c2
bpo-32030: Add _Py_EncodeLocaleRaw() (#4961)

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.
Include/fileutils.h
Modules/getpath.c
Modules/main.c
Objects/unicodeobject.c
Python/fileutils.c