New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing sgmlop causes xmlrpclib error #48963
Comments
If you install sgmlop (downloadable from You can reproduce this problem as follows (I have tested with Py 2.4, ------------ data = """<?xml version="1.0" encoding="UTF-8"?>
<methodCall><methodName>f</methodName><params>
<param><value>käse</value></param>
</params></methodCall>"""
import xmlrpclib assert xmlrpclib.FastParser is None assert xmlrpclib.loads(data) == ((u'k\xe4se',), 'f') ------------ If sgmlop is installed, this gives a UnicodeDecodeError, otherwise This happens because xmlrpclib prefers using sgmlop over Find attached a patch that fixes this problem. I also wonder whether lib.parsers.expat shouldn't be preferred over |
The patch could use a test (which doesn't require sgmlop). |
This bug still present in Python 2.7, the proposed patch works. |
I don't believe this bug is still present in Python 2.7. Issue bpo-5767 removed sgmlop support from xmlrpclib in 2.7 alpha 1, and trying the test program succeeds. Closing. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: