mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Change the internal "undefined codepoint" mark for CJKCodecs decoders
from U+FFFD to U+FFFE which is considered more appropriate. (from MAL's comment)
This commit is contained in:
parent
cc9a951f35
commit
331649acc7
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue