[Python-checkins] python/dist/src/Include unicodeobject.h, 2.48, 2.48.2.1
doerwalter@users.sourceforge.net
doerwalter at users.sourceforge.net
Tue Aug 30 12:46:16 CEST 2005
Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5498/Include
Modified Files:
Tag: release24-maint
unicodeobject.h
Log Message:
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)
Index: unicodeobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/unicodeobject.h,v
retrieving revision 2.48
retrieving revision 2.48.2.1
diff -u -d -r2.48 -r2.48.2.1
--- unicodeobject.h 22 Nov 2004 13:02:29 -0000 2.48
+++ unicodeobject.h 30 Aug 2005 10:46:05 -0000 2.48.2.1
@@ -797,6 +797,16 @@
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.
More information about the Python-checkins
mailing list