[issue12931] xmlrpclib confuses unicode and string

2012-05-22 Thread Ulrich Seidl
Ulrich Seidl added the comment: The change set committed for 2.7 introduces another problem. At the beginning of xmlrpclib.py, there is an explicit test for the availability of unicode: try: unicode except NameError: unicode = None # unicode support not available In case unicode was s

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset c02e790c4535 by Victor Stinner in branch '2.7': Issue #12931: xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of http://hg.python.org/cpython/rev/c02e790c4535 New changeset 5ceab07bcd02 by Victor Stinner in branch '3.2': Issue #12931: Add

[issue12931] xmlrpclib confuses unicode and string

2011-09-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12931] xmlrpclib confuses unicode and string

2011-09-07 Thread STINNER Victor
STINNER Victor added the comment: "I guess it should use the configured encoding[1] (which is utf-8 by default) to do that, shouldn't it? Since that's the encoding that is used for the message body, too." The URI is only used in HTTP headers, not in the body. --

[issue12931] xmlrpclib confuses unicode and string

2011-09-07 Thread Wolfgang Schnerring
Wolfgang Schnerring added the comment: I guess it should use the configured encoding[1] (which is utf-8 by default) to do that, shouldn't it? Since that's the encoding that is used for the message body, too. [1] http://docs.python.org/library/xmlrpclib.html#xmlrpclib.ServerProxy --

[issue12931] xmlrpclib confuses unicode and string

2011-09-07 Thread STINNER Victor
STINNER Victor added the comment: New patch using ISO-8859-1 instead of the default encoding (ASCII). -- keywords: +patch Added file: http://bugs.python.org/file23114/xmlrpclib_unicode_host-2.patch ___ Python tracker

[issue12931] xmlrpclib confuses unicode and string

2011-09-07 Thread STINNER Victor
STINNER Victor added the comment: > (thus failing, as #7093 tells, which I personally wouldn't have > closed wontfix). I don't know the right encoding to encode a HTTP header. In Python 3, http.client.HTTPConnection.putheader() encodes header name to ASCII and header values to ISO-8859-1. --

[issue12931] xmlrpclib confuses unicode and string

2011-09-07 Thread Wolfgang Schnerring
New submission from Wolfgang Schnerring : This is a similar issue to http://bugs.python.org/issue7093, but more insiduous: This works: xmlrpclib.ServerProxy(u'http://localhost:8080').foo(dict(baz=u'bär')) While this fails with a UnicodeDecodeError (note the trailing slash in the URI): xmlrpcl