diff options
author | Hye-Shik Chang <hyeshik@gmail.com> | 2003-12-22 01:31:13 (GMT) |
---|---|---|
committer | Hye-Shik Chang <hyeshik@gmail.com> | 2003-12-22 01:31:13 (GMT) |
commit | 40e9509dc72020659d35115aa09dddae5488c82a (patch) | |
tree | 17d8660865997e6c0b9c3fdcda8b43533c4680ab | |
parent | 9014560412a2bd322170902a42ab965eee4b0c47 (diff) | |
download | cpython-40e9509dc72020659d35115aa09dddae5488c82a.zip cpython-40e9509dc72020659d35115aa09dddae5488c82a.tar.gz cpython-40e9509dc72020659d35115aa09dddae5488c82a.tar.bz2 |
Fix broken xmlcharrefreplace by rev 2.204.
(Pointy hat goes to perky)
-rw-r--r-- | Objects/unicodeobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 37395c7..b3c4a01 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; + else if (*p<10000) + repsize += 2+4+1; #ifndef Py_UNICODE_WIDE else - repsize += 2+4+1; + repsize += 2+5+1; #else - else if (*p<10000) - repsize += 2+4+1; else if (*p<100000) repsize += 2+5+1; else if (*p<1000000) |