diff options
author | Walter Dörwald <walter@livinglogic.de> | 2005-08-30 10:46:06 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2005-08-30 10:46:06 (GMT) |
commit | fd8e0170e2335da86d491d0324b47a3276032b90 (patch) | |
tree | e825190decf9684eca63030cecc34cd319fd31fa /Include | |
parent | 238daff62a52a8b43b848f22139a5b0225ba7e0c (diff) | |
download | cpython-fd8e0170e2335da86d491d0324b47a3276032b90.zip cpython-fd8e0170e2335da86d491d0324b47a3276032b90.tar.gz cpython-fd8e0170e2335da86d491d0324b47a3276032b90.tar.bz2 |
Backport checkin:
SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complain
about illegal code points. The codec now supports PEP 293 style error handlers.
(This is a variant of the patch by Nik Haldimann that detects truncated data)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 6738cbd..b534187 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -797,6 +797,16 @@ PyAPI_FUNC(PyObject*) PyUnicode_EncodeRawUnicodeEscape( int length /* Number of Py_UNICODE chars to encode */ ); +/* --- Unicode Internal Codec --------------------------------------------- + + Only for internal use in _codecsmodule.c */ + +PyObject *_PyUnicode_DecodeUnicodeInternal( + const char *string, + int length, + const char *errors + ); + /* --- Latin-1 Codecs ----------------------------------------------------- Note: Latin-1 corresponds to the first 256 Unicode ordinals. |