mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix broken xmlcharrefreplace by rev 2.204.
(Pointy hat goes to perky)
This commit is contained in:
parent
9014560412
commit
40e9509dc7
1 changed files with 4 additions and 4 deletions
|
@ -2413,12 +2413,12 @@ static PyObject *unicode_encode_ucs1(const Py_UNICODE *p,
|
|||
repsize += 2+2+1;
|
||||
else if (*p<1000)
|
||||
repsize += 2+3+1;
|
||||
#ifndef Py_UNICODE_WIDE
|
||||
else
|
||||
repsize += 2+4+1;
|
||||
#else
|
||||
else if (*p<10000)
|
||||
repsize += 2+4+1;
|
||||
#ifndef Py_UNICODE_WIDE
|
||||
else
|
||||
repsize += 2+5+1;
|
||||
#else
|
||||
else if (*p<100000)
|
||||
repsize += 2+5+1;
|
||||
else if (*p<1000000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue