This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2013年01月17日 16:54 by serhiy.storchaka, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| etree_parse_str.patch | serhiy.storchaka, 2013年02月25日 15:41 | review | ||
| etree_parse_str_2.patch | serhiy.storchaka, 2013年05月22日 13:42 | review | ||
| Messages (10) | |||
|---|---|---|---|
| msg180143 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年01月17日 16:54 | |
>>> import xml.etree.ElementTree >>> data = '<?xml version="1.0" encoding="iso-8859-1"?>\n<money value="$\xa3\u20ac\U0001017b">$\xa3\u20ac\U0001017b</money>' >>> xml.etree.ElementTree.tostring(xml.etree.ElementTree.fromstring(data), 'unicode') '<money value="$£â\x82¬ð\x90\x85»">$£â\x82¬ð\x90\x85»</money>' |
|||
| msg180144 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年01月17日 16:54 | |
Patch for issue10590 fixes this for Python implementation of ElementTree, but not for C implementation. |
|||
| msg182950 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年02月25日 15:41 | |
Here is a patch for C implementation. Python implementation was fixed in issue17089. |
|||
| msg183456 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年03月04日 14:13 | |
Eli, this issue no longer has open pre-requisites. Issue10590 was replaced by issue17089 which closed now. Issue17089 fixed Python interface to expat parser, but cElementTree uses C interface of expat directly and the proposed pathes fix it. |
|||
| msg189816 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年05月22日 13:42 | |
Here is an updated patch. |
|||
| msg189817 - (view) | Author: Eli Bendersky (eli.bendersky) * (Python committer) | Date: 2013年05月22日 13:48 | |
LGTM |
|||
| msg189819 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年05月22日 14:21 | |
New changeset 7781ccae7b9a by Serhiy Storchaka in branch '3.3': Issue #16986: ElementTree now correctly parses a string input not only when http://hg.python.org/cpython/rev/7781ccae7b9a New changeset 659c1ce8ed2f by Serhiy Storchaka in branch 'default': Issue #16986: ElementTree now correctly parses a string input not only when http://hg.python.org/cpython/rev/659c1ce8ed2f |
|||
| msg189820 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年05月22日 14:44 | |
Oh, 2.7 still uses old doctests. It's a challenge to backport tests for this issue. |
|||
| msg189832 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2013年05月22日 18:17 | |
Due to the fact that ElementTree's documentation doesn't promise parsing Unicode string perhaps it shouldn't be backported to 2.7. At least I hadn't backported corresponded pyexpat changes (which affects pure Python ElementTree) to 2.7. |
|||
| msg189833 - (view) | Author: Eli Bendersky (eli.bendersky) * (Python committer) | Date: 2013年05月22日 18:29 | |
Agreed re 2.7; the problem is not important enough to warrant such a backport, due to the state of maintenance of 2.7 at this point. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:40 | admin | set | github: 61190 |
| 2013年05月22日 18:29:51 | eli.bendersky | set | messages: + msg189833 |
| 2013年05月22日 18:17:43 | serhiy.storchaka | set | status: open -> closed versions: - Python 2.7 messages: + msg189832 assignee: serhiy.storchaka resolution: fixed stage: needs patch -> resolved |
| 2013年05月22日 14:44:30 | serhiy.storchaka | set | messages:
+ msg189820 versions: - Python 3.2 |
| 2013年05月22日 14:21:35 | python-dev | set | nosy:
+ python-dev messages: + msg189819 |
| 2013年05月22日 13:57:33 | serhiy.storchaka | unlink | issue13612 dependencies |
| 2013年05月22日 13:48:07 | eli.bendersky | set | messages: + msg189817 |
| 2013年05月22日 13:42:12 | serhiy.storchaka | set | files:
+ etree_parse_str_2.patch messages: + msg189816 |
| 2013年05月22日 07:59:11 | serhiy.storchaka | link | issue13612 dependencies |
| 2013年03月04日 14:13:08 | serhiy.storchaka | set | messages: + msg183456 |
| 2013年02月25日 15:41:05 | serhiy.storchaka | set | files:
+ etree_parse_str.patch keywords: + patch dependencies: + Expat parser parses strings only when XML encoding is UTF-8, - Parameter type error for xml.sax.parseString(string, ...) messages: + msg182950 |
| 2013年01月17日 16:54:46 | serhiy.storchaka | set | dependencies:
+ Parameter type error for xml.sax.parseString(string, ...) messages: + msg180144 |
| 2013年01月17日 16:54:19 | serhiy.storchaka | create | |