[Python-checkins] python/dist/src/Include unicodeobject.h, 2.48, 2.49

doerwalter@users.sourceforge.net doerwalter at users.sourceforge.net
Tue Aug 30 12:23:25 CEST 2005


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1718/Include
Modified Files:
	unicodeobject.h 
Log Message:
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)
Index: unicodeobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/unicodeobject.h,v
retrieving revision 2.48
retrieving revision 2.49
diff -u -d -r2.48 -r2.49
--- unicodeobject.h	22 Nov 2004 13:02:29 -0000	2.48
+++ unicodeobject.h	30 Aug 2005 10:23:13 -0000	2.49
@@ -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

AltStyle によって変換されたページ (->オリジナル) /