summaryrefslogtreecommitdiffstats
path: root/Modules/unicodedata.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-18 16:11:54 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-10-18 16:11:54 (GMT)
commit9def6a3a77569214b49d1b54ef138b0e4985a6bd (patch)
treec08adc7ced466f675d51f8ffb59c8ddba3165028 /Modules/unicodedata.c
parentecbb0eaa43938e75afe4e1a4c122c3dc64290fdd (diff)
downloadcpython-9def6a3a77569214b49d1b54ef138b0e4985a6bd.zip
cpython-9def6a3a77569214b49d1b54ef138b0e4985a6bd.tar.gz
cpython-9def6a3a77569214b49d1b54ef138b0e4985a6bd.tar.bz2
Update to Unicode 3.2 database.
Diffstat (limited to 'Modules/unicodedata.c')
-rw-r--r--Modules/unicodedata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index 83d21e2..d42c3b6 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -36,7 +36,7 @@ _getrecord(PyUnicodeObject* v)
code = (int) *PyUnicode_AS_UNICODE(v);
- if (code < 0 || code >= 65536)
+ if (code < 0 || code >= 0x110000)
index = 0;
else {
index = index1[(code>>SHIFT)];
@@ -219,7 +219,7 @@ unicodedata_decomposition(PyObject *self, PyObject *args)
code = (int) *PyUnicode_AS_UNICODE(v);
- if (code < 0 || code >= 65536)
+ if (code < 0 || code >= 0x110000)
index = 0;
else {
index = decomp_index1[(code>>DECOMP_SHIFT)];
@@ -284,7 +284,7 @@ _getucname(Py_UCS4 code, char* buffer, int buflen)
int word;
unsigned char* w;
- if (code >= 65536)
+ if (code >= 0x110000)
return 0;
/* get offset into phrasebook */