diff options
author | Victor Stinner <vstinner@python.org> | 2020-12-08 14:38:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 14:38:08 +0100 |
commit | b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d (patch) | |
tree | ef735bfae1b85af4fd583fe1f3d3bd51359e2fda /Python/errors.c | |
parent | 233fddfe395e0de79a3866c9067ae7c544373ebf (diff) | |
download | cpython-git-b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d.tar.gz |
bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642)
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().
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions