diff options
author | Victor Stinner <vstinner@python.org> | 2020-12-08 16:42:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 16:42:31 (GMT) |
commit | b5cf308de8b19bf8f77053013f7e8a944159e1aa (patch) | |
tree | 864d769518fb5b52ed3befbe7f0c5cdd640f646d /Python/dynload_win.c | |
parent | 801f35133338ed00d8e413ec36baa65595fb7d1f (diff) | |
download | cpython-b5cf308de8b19bf8f77053013f7e8a944159e1aa.zip cpython-b5cf308de8b19bf8f77053013f7e8a944159e1aa.tar.gz cpython-b5cf308de8b19bf8f77053013f7e8a944159e1aa.tar.bz2 |
bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642) (GH-23692) (GH-23696)
Fix encoding name when running a ".pyc" file on Windows:
PyRun_SimpleFileExFlags() now uses the correct encoding to decode the
filename.
* Add pyrun_file() subfunction.
* Add pyrun_simple_file() subfunction.
* PyRun_SimpleFileExFlags() now calls _Py_fopen_obj() rather than
_Py_fopen().
(cherry picked from commit b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d)
(cherry picked from commit f0e42ae03c41ec32fcb3064772f46ff7f2c5ff3b)
Diffstat (limited to 'Python/dynload_win.c')
0 files changed, 0 insertions, 0 deletions