Staging
v0.8.1
https://github.com/python/cpython
Revision b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d authored by Victor Stinner on 08 December 2020, 13:38:08 UTC, committed by GitHub on 08 December 2020, 13:38:08 UTC
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().
1 parent 233fddf
Raw File
Tip revision: b6d98c10fff6f320f8fdf595c3f9a05d8be4e31d authored by Victor Stinner on 08 December 2020, 13:38:08 UTC
bpo-32381: Fix PyRun_SimpleFileExFlags() encoding (GH-23642)
Tip revision: b6d98c1
pyfpe.c
/* These variables used to be used when Python was built with --with-fpectl,
 * but support for that was dropped in 3.7. We continue to define them,
 * though, because they may be referenced by extensions using the stable ABI.
 */

#include "setjmp.h"

jmp_buf PyFPE_jbuf;
int PyFPE_counter;

double
PyFPE_dummy(void *dummy)
{
    return 1.0;
}
back to top