Patch 1494554: Update numeric properties to Unicode 4.1.

This commit is contained in:
Martin v. Löwis 2006-05-27 08:36:52 +00:00
parent d1b6cd7bfb
commit d004fc810a
6 changed files with 336 additions and 11 deletions

View file

@ -2376,6 +2376,7 @@ PyObject *_PyUnicode_DecodeUnicodeInternal(const char *s,
end = s + size;
while (s < end) {
*p = *(Py_UNICODE*)s;
memcpy(p, s, sizeof(Py_UNICODE));
/* We have to sanity check the raw data, otherwise doom looms for
some malformed UCS-4 data. */