diff options
| author | Walter Dörwald <walter@livinglogic.de> | 2005-08-30 10:23:14 +0000 |
|---|---|---|
| committer | Walter Dörwald <walter@livinglogic.de> | 2005-08-30 10:23:14 +0000 |
| commit | aff4a6809d7b9aa8070d27286df03835e90de754 (patch) | |
| tree | 5011cd97caa5e038a348fe80c007a354fb9c2117 /Include/unicodeobject.h | |
| parent | dcb262a0c52ff2ea3ba04f8baec36477b850fc7c (diff) | |
| download | cpython-aff4a6809d7b9aa8070d27286df03835e90de754.tar.gz | |
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 Nik Haldimann's patch that detects truncated data)
Diffstat (limited to 'Include/unicodeobject.h')
| -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 6738cbd679..b5341875e6 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. |
