• Victor Stinner's avatar
    bpo-34523: Support surrogatepass in locale codecs (GH-8995) · 3d4226a8
    Victor Stinner yazdı
    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.
    3d4226a8
Adı
Son kayıt (commit)
Son güncelleme
..
clinic Loading commit data...
README.txt Loading commit data...
asciilib.h Loading commit data...
codecs.h Loading commit data...
count.h Loading commit data...
ctype.h Loading commit data...
eq.h Loading commit data...
fastsearch.h Loading commit data...
find.h Loading commit data...
find_max_char.h Loading commit data...
join.h Loading commit data...
localeutil.h Loading commit data...
partition.h Loading commit data...
replace.h Loading commit data...
split.h Loading commit data...
stringdefs.h Loading commit data...
transmogrify.h Loading commit data...
ucs1lib.h Loading commit data...
ucs2lib.h Loading commit data...
ucs4lib.h Loading commit data...
undef.h Loading commit data...
unicode_format.h Loading commit data...
unicodedefs.h Loading commit data...