diff options
| author | Hye-Shik Chang <hyeshik@gmail.com> | 2005-10-06 15:51:59 +0000 |
|---|---|---|
| committer | Hye-Shik Chang <hyeshik@gmail.com> | 2005-10-06 15:51:59 +0000 |
| commit | 331649acc7479f6e10cf6f6d01118d90f58ae600 (patch) | |
| tree | f5642260743cb04cf6f900d7f2bb8a02ffd1c5f9 /Modules/cjkcodecs | |
| parent | cc9a951f35c99f21b76c39e8c202cb467a412038 (diff) | |
| download | cpython-git-331649acc7479f6e10cf6f6d01118d90f58ae600.tar.gz | |
Change the internal "undefined codepoint" mark for CJKCodecs decoders
from U+FFFD to U+FFFE which is considered more appropriate. (from
MAL's comment)
Diffstat (limited to 'Modules/cjkcodecs')
| -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 32ac144c68..e0229cc367 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 |
