[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b39f2486314 by Éric Araujo in branch '2.7': Note that the #1548891 fix indirectly fixes shlex (#6988, #1170) http://hg.python.org/cpython/rev/0b39f2486314 -- ___ Python tracker

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 27ae7d4e1983 by Antoine Pitrou in branch '2.7': Issue #1548891: The cStringIO.StringIO() constructor now encodes unicode http://hg.python.org/cpython/rev/27ae7d4e1983 -- nosy: +python-dev ___ Python trac

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If you think it's fine to change this behavior, then yes :) Well, the "documented" behaviour makes no sense. Either it should raise TypeError or convert. Since write() converts, it's logical for the constructor to do so as well. -- resolution: -> f

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-22 Thread Georg Brandl
Georg Brandl added the comment: If you think it's fine to change this behavior, then yes :) -- ___ Python tracker ___ ___ Python-bu

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Georg, is this patch ok to you? -- assignee: georg.brandl -> keywords: +patch Added file: http://bugs.python.org/file23492/cio.patch ___ Python tracker

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: And unsurprisingly so, since the fix was reverted in r56830 by Georg. -- ___ Python tracker ___ _

[issue1548891] shlex (or perhaps cStringIO) and unicode strings

2011-10-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Still happens on latest 2.7: >>> from cStringIO import StringIO >>> sio = StringIO(u"abc") >>> sio.getvalue() 'a\x00b\x00c\x00' -- nosy: +pitrou resolution: fixed -> stage: -> needs patch status: closed -> open versions: +Python 2.7 -Python 2.5