summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2005-08-30 10:46:06 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2005-08-30 10:46:06 (GMT)
commitfd8e0170e2335da86d491d0324b47a3276032b90 (patch)
treee825190decf9684eca63030cecc34cd319fd31fa /Include
parent238daff62a52a8b43b848f22139a5b0225ba7e0c (diff)
downloadcpython-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.h10
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.