From: Hye-Shik Chang Date: Thu, 6 Oct 2005 15:51:59 +0000 (+0000) Subject: Change the internal "undefined codepoint" mark for CJKCodecs decoders X-Git-Tag: v2.5a0~1302 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=331649acc7479f6e10cf6f6d01118d90f58ae600;p=thirdparty%2FPython%2Fcpython.git Change the internal "undefined codepoint" mark for CJKCodecs decoders from U+FFFD to U+FFFE which is considered more appropriate. (from MAL's comment) --- diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h index 32ac144c68a4..e0229cc36744 100644 --- a/Modules/cjkcodecs/cjkcodecs.h +++ b/Modules/cjkcodecs/cjkcodecs.h @@ -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