Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 8, 2020

Remove the private _Py_fopen() function which is no longer needed.
Use _Py_wfopen` or _Py_fopen_obj() instead.

https://bugs.python.org/issue32381

Remove the private _Py_fopen() function which is no longer needed.
Use _Py_wfopen` or _Py_fopen_obj() instead.
@vstinner
Copy link
Member Author

vstinner commented Dec 8, 2020

Using a bytes string for a filename causes encoding headaches likes https://bugs.python.org/issue32381 It's better to use wide character strings or Unicode strings for filenames.

@vstinner
Copy link
Member Author

vstinner commented Dec 8, 2020

See also https://bugs.python.org/issue42569

@hroncok
Copy link
Contributor

hroncok commented Jan 5, 2021

Boost is affected by the removal: https://bugzilla.redhat.com/show_bug.cgi?id=1912903

adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Remove the private _Py_fopen() function which is no longer needed.
Use _Py_wfopen() or _Py_fopen_obj() instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants