cpython/Include
Victor Stinner 3d4226a832
bpo-34523: Support surrogatepass in locale codecs (GH-8995)
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.
2018-08-29 22:21:32 +02:00
..
internal bpo-31650: Remove _Py_CheckHashBasedPycsMode global config var (GH-8608) 2018-08-01 18:18:07 +02:00
abstract.h Clean up after bpo-33738. (GH-7627) 2018-06-11 15:01:47 +03:00
accu.h
asdl.h
ast.h bpo-33691: Add _PyAST_GetDocString(). (GH-7236) 2018-05-30 10:56:16 +03:00
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 bpo-34523: Add _PyCoreConfig.filesystem_encoding (GH-8963) 2018-08-29 13:25:36 +02:00
datetime.h
descrobject.h
dictobject.h
dtoa.h
dynamic_annotations.h
enumobject.h
errcode.h
eval.h
fileobject.h
fileutils.h bpo-34523: Support surrogatepass in locale codecs (GH-8995) 2018-08-29 22:21:32 +02:00
floatobject.h
frameobject.h
funcobject.h
genobject.h
graminit.h
grammar.h
import.h Fix redundant declaration of _PyImport_AddModuleObject (GH-7992) 2018-06-29 16:47:18 -06:00
intrcheck.h Add missed details of the C API introduced in 3.7. (GH-7047) 2018-05-22 20:59:42 +03:00
iterobject.h
listobject.h
longintrepr.h
longobject.h bpo-20260: Implement non-bitwise unsigned int converters for Argument Clinic. (GH-8434) 2018-07-26 13:22:16 +03:00
marshal.h
memoryobject.h
metagrammar.h
methodobject.h
modsupport.h
moduleobject.h
namespaceobject.h
node.h
object.h
objimpl.h bpo-33597: Reduce PyGC_Head size (GH-7043) 2018-07-10 17:19:53 +09:00
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 Define _Py_NO_RETURN for Microsoft C compiler (GH-8606) 2018-08-01 16:41:25 +02:00
pyexpat.h
pyfpe.h
pyhash.h
pylifecycle.h bpo-34523: Add _PyCoreConfig.filesystem_encoding (GH-8963) 2018-08-29 13:25:36 +02:00
pymacconfig.h
pymacro.h
pymath.h
pymem.h
pyport.h bpo-33720: Refactor marshalling/unmarshalling floats. (GH-8071) 2018-07-24 10:55:47 +03:00
pystate.h bpo-34301: Add _PyInterpreterState_Get() helper function (GH-8592) 2018-08-03 15:33:52 +02:00
pystrcmp.h
pystrhex.h
pystrtod.h
Python-ast.h bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197) 2018-05-29 12:04:55 +03:00
Python.h bpo-34170: Add Python/coreconfig.c for _PyCoreConfig (GH-8607) 2018-08-01 17:56:14 +02:00
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