[Python-checkins] python/dist/src/Modules/cjkcodecs cjkcodecs.h, 1.5, 1.6

perky@users.sourceforge.net perky at users.sourceforge.net
Thu Oct 6 17:52:04 CEST 2005


Update of /cvsroot/python/python/dist/src/Modules/cjkcodecs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29224/Modules/cjkcodecs

Modified Files:
	cjkcodecs.h 
Log Message:
Change the internal "undefined codepoint" mark for CJKCodecs decoders
from U+FFFD to U+FFFE which is considered more appropriate.  (from
MAL's comment)


Index: cjkcodecs.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cjkcodecs/cjkcodecs.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- cjkcodecs.h	19 Aug 2004 17:49:56 -0000	1.5
+++ cjkcodecs.h	6 Oct 2005 15:51:59 -0000	1.6
@@ -12,7 +12,10 @@
 #include "multibytecodec.h"
 
 
-#define UNIINV	Py_UNICODE_REPLACEMENT_CHARACTER
+/* a unicode "undefined" codepoint */
+#define UNIINV	0xFFFE
+
+/* internal-use DBCS codepoints which aren't used by any charsets */
 #define NOCHAR	0xFFFF
 #define MULTIC	0xFFFE
 #define DBCINV	0xFFFD



More information about the Python-checkins mailing list