Issue #16129: Add `Py_SetStandardStreamEncoding`
Nick Coghlan authored
This new pre-initialization API allows embedding
applications like Blender to force a particular
encoding and error handler for the standard IO streams.

Also refactors Modules/_testembed.c to let us start
testing multiple embedding scenarios.

(Initial patch by Bastien Montagne)
7d270ee0
Name Last commit Last update
..
Python-ast.c Issue #4555: All exported C symbols are now prefixed with either "Py" or "_Py".
_warnings.c Close #11619: The parser and the import machinery do not encode Unicode
asdl.c Issue #4555: All exported C symbols are now prefixed with either "Py" or "_Py".
ast.c Issue #4555: All exported C symbols are now prefixed with either "Py" or "_Py".
bltinmodule.c Issue #18783: Removed existing mentions of Python long type in docstrings,
ceval.c Close #19199: Remove ``PyThreadState.tick_counter`` field
ceval_gil.h Issue #15038: Optimize python Locks on Windows
codecs.c Issue #18722: Remove uses of the "register" keyword in C code.
compile.c Issue #18783: Removed existing mentions of Python long type in docstrings,
condvar.h Issue #15038 : Fixing the condition broadcast and docs.
dtoa.c Issue #14521: Make result of float('nan') and float('-nan') more consistent across platforms. Further, don't rely on Py_HUGE_VAL for float('inf').
dup2.c #9060 Let platforms without dup2() compile the replacement fonction without error.
dynamic_annotations.c Make (most of) Python's tests pass under Thread Sanitizer.
dynload_aix.c Issue #18722: Remove uses of the "register" keyword in C code.
dynload_dl.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.
dynload_hpux.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.
dynload_next.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.
dynload_shlib.c merge 3.3
dynload_stub.c Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.
dynload_win.c Issue #18180: Fix ref leak in _PyImport_GetDynLoadWindows().
errors.c Don't export internal symbols ("make smelly")
fileutils.c Don't export internal symbols ("make smelly")
formatter_unicode.c Issue #18783: Removed existing mentions of Python long type in docstrings,
frozen.c make some freezing related stuff const
frozenmain.c Issue #15893: Improve error handling in main() and Py_FrozenMain()
future.c
getargs.c
getcompiler.c
getcopyright.c
getopt.c
getplatform.c
getversion.c
graminit.c
import.c
importdl.c
importdl.h
importlib.h
makeopcodetargets.py
marshal.c
modsupport.c
mysnprintf.c
mystrtoul.c
opcode_targets.h
peephole.c
pyarena.c
pyctype.c
pyfpe.c
pymath.c
pystate.c
pystrcmp.c
pystrtod.c
pythonrun.c
pytime.c
random.c
sigcheck.c
strdup.c
structmember.c
symtable.c
sysmodule.c
thread.c
thread_foobar.h
thread_nt.h
thread_pthread.h
traceback.c