[Python-checkins] cpython: Set Py_UNICODE_REPLACEMENT_CHARACTER type to Py_UCS4, instead of Py_UNICODE

victor.stinner python-checkins at python.org
Wed Sep 28 20:29:28 CEST 2011


http://hg.python.org/cpython/rev/17626ba912fb
changeset:   72488:17626ba912fb
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Wed Sep 28 20:29:27 2011 +0200
summary:
  Set Py_UNICODE_REPLACEMENT_CHARACTER type to Py_UCS4, instead of Py_UNICODE

files:
  Include/unicodeobject.h |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -506,7 +506,7 @@
    Unicode character U+FFFD is the official REPLACEMENT CHARACTER in
    Unicode 3.0. */
 
-#define Py_UNICODE_REPLACEMENT_CHARACTER ((Py_UNICODE) 0xFFFD)
+#define Py_UNICODE_REPLACEMENT_CHARACTER ((Py_UCS4) 0xFFFD)
 
 /* === Public API ========================================================= */
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list