From 331649acc7479f6e10cf6f6d01118d90f58ae600 Mon Sep 17 00:00:00 2001 From: Hye-Shik Chang Date: Thu, 6 Oct 2005 15:51:59 +0000 Subject: Change the internal "undefined codepoint" mark for CJKCodecs decoders from U+FFFD to U+FFFE which is considered more appropriate. (from MAL's comment) --- Modules/cjkcodecs/cjkcodecs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h index 32ac144..e0229cc 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 -- cgit v0.12