mirror of
https://github.com/python/cpython
synced 2026-09-28 13:58:18 +03:00
Add support for the "surrogatepass" error handler in PyUnicode_DecodeFSDefault() and PyUnicode_EncodeFSDefault() for the UTF-8 encoding. Changes: * _Py_DecodeUTF8Ex() and _Py_EncodeUTF8Ex() now support the surrogatepass error handler (_Py_ERROR_SURROGATEPASS). * _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() now use the _Py_error_handler enum instead of "int surrogateescape" to pass the error handler. These functions now return -3 if the error handler is unknown. * Add unit tests on _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() in test_codecs. * Rename get_error_handler() to _Py_GetErrorHandler() and expose it as a private function. * _freeze_importlib doesn't need config.filesystem_errors="strict" workaround anymore. |
||
|---|---|---|
| .. | ||
| internal | ||
| abstract.h | ||
| accu.h | ||
| asdl.h | ||
| ast.h | ||
| bitset.h | ||
| bltinmodule.h | ||
| boolobject.h | ||
| bytearrayobject.h | ||
| bytes_methods.h | ||
| bytesobject.h | ||
| cellobject.h | ||
| ceval.h | ||
| classobject.h | ||
| code.h | ||
| codecs.h | ||
| compile.h | ||
| complexobject.h | ||
| context.h | ||
| coreconfig.h | ||
| datetime.h | ||
| descrobject.h | ||
| dictobject.h | ||
| dtoa.h | ||
| dynamic_annotations.h | ||
| enumobject.h | ||
| errcode.h | ||
| eval.h | ||
| fileobject.h | ||
| fileutils.h | ||
| floatobject.h | ||
| frameobject.h | ||
| funcobject.h | ||
| genobject.h | ||
| graminit.h | ||
| grammar.h | ||
| import.h | ||
| intrcheck.h | ||
| iterobject.h | ||
| listobject.h | ||
| longintrepr.h | ||
| longobject.h | ||
| marshal.h | ||
| memoryobject.h | ||
| metagrammar.h | ||
| methodobject.h | ||
| modsupport.h | ||
| moduleobject.h | ||
| namespaceobject.h | ||
| node.h | ||
| object.h | ||
| objimpl.h | ||
| odictobject.h | ||
| opcode.h | ||
| osdefs.h | ||
| osmodule.h | ||
| parsetok.h | ||
| patchlevel.h | ||
| pgen.h | ||
| pgenheaders.h | ||
| py_curses.h | ||
| pyarena.h | ||
| pyatomic.h | ||
| pycapsule.h | ||
| pyctype.h | ||
| pydebug.h | ||
| pydtrace.d | ||
| pydtrace.h | ||
| pyerrors.h | ||
| pyexpat.h | ||
| pyfpe.h | ||
| pyhash.h | ||
| pylifecycle.h | ||
| pymacconfig.h | ||
| pymacro.h | ||
| pymath.h | ||
| pymem.h | ||
| pyport.h | ||
| pystate.h | ||
| pystrcmp.h | ||
| pystrhex.h | ||
| pystrtod.h | ||
| Python-ast.h | ||
| Python.h | ||
| pythonrun.h | ||
| pythread.h | ||
| pytime.h | ||
| rangeobject.h | ||
| setobject.h | ||
| sliceobject.h | ||
| structmember.h | ||
| structseq.h | ||
| symtable.h | ||
| sysmodule.h | ||
| token.h | ||
| traceback.h | ||
| tupleobject.h | ||
| typeslots.h | ||
| ucnhash.h | ||
| unicodeobject.h | ||
| warnings.h | ||
| weakrefobject.h | ||