diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2005-10-06 15:51:59 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2005-10-06 15:51:59 (GMT) |
commit | 331649acc7479f6e10cf6f6d01118d90f58ae600 (patch) | |
tree | f5642260743cb04cf6f900d7f2bb8a02ffd1c5f9 | |
parent | cc9a951f35c99f21b76c39e8c202cb467a412038 (diff) | |
download | cpython-331649acc7479f6e10cf6f6d01118d90f58ae600.zip cpython-331649acc7479f6e10cf6f6d01118d90f58ae600.tar.gz cpython-331649acc7479f6e10cf6f6d01118d90f58ae600.tar.bz2 |
Change the internal "undefined codepoint" mark for CJKCodecs decoders
from U+FFFD to U+FFFE which is considered more appropriate. (from
MAL's comment)
-rw-r--r-- | Modules/cjkcodecs/cjkcodecs.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |