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
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
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12931
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12931
___
___
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
___
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
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
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
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]
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.
10 matches
Mail list logo