summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/Core and Builtins
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-12-08 13:38:08 (GMT)
committerGitHub <noreply@github.com>2020-12-08 13:38:08 (GMT)
commitb6d98c10fff6f320f8fdf595c3f9a05d8be4e31d (patch)
treeef735bfae1b85af4fd583fe1f3d3bd51359e2fda /Misc/NEWS.d/next/Core and Builtins
parent233fddfe395e0de79a3866c9067ae7c544373ebf (diff)
downloadcpython-b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d.zip
cpython-b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d.tar.gz
cpython-b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d.tar.bz2
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 'Misc/NEWS.d/next/Core and Builtins')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-12-04-17-17-44.bpo-32381.NY5t2S.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-12-04-17-17-44.bpo-32381.NY5t2S.rst b/Misc/NEWS.d/next/Core and Builtins/2020-12-04-17-17-44.bpo-32381.NY5t2S.rst
new file mode 100644
index 0000000..f4d84f9
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-12-04-17-17-44.bpo-32381.NY5t2S.rst
@@ -0,0 +1,3 @@
+Fix encoding name when running a ``.pyc`` file on Windows:
+:c:func:`PyRun_SimpleFileExFlags()` now uses the correct encoding to decode
+the filename.