]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change the internal "undefined codepoint" mark for CJKCodecs decoders
authorHye-Shik Chang <hyeshik@gmail.com>
Thu, 6 Oct 2005 15:51:59 +0000 (15:51 +0000)
committerHye-Shik Chang <hyeshik@gmail.com>
Thu, 6 Oct 2005 15:51:59 +0000 (15:51 +0000)
from U+FFFD to U+FFFE which is considered more appropriate.  (from
MAL's comment)

Modules/cjkcodecs/cjkcodecs.h

index 32ac144c68a44c06a8cb669f1623a69457f7270d..e0229cc36744f5e5ade060e81f81ae678783b41d 100644 (file)
 #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