[issue12931] xmlrpclib confuses unicode and string

2012-05-22 Thread Ulrich Seidl
Ulrich Seidl ulrich.se...@muneda.com 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

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12931 ___

[issue12931] xmlrpclib confuses unicode and string

2011-09-22 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12931 ___ ___

[issue12931] xmlrpclib confuses unicode and string

2011-09-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12931 ___

[issue12931] xmlrpclib confuses unicode and string

2011-09-07 Thread Wolfgang Schnerring
New submission from Wolfgang Schnerring wosc+pyt...@wosc.de: 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

[issue12931] xmlrpclib confuses unicode and string

2011-09-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue12931] xmlrpclib confuses unicode and string

2011-09-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 Wolfgang Schnerring
Wolfgang Schnerring wosc+pyt...@wosc.de 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]

[issue12931] xmlrpclib confuses unicode and string

2011-09-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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.