This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dcoles
Recipients dcoles, dmalcolm, doko, pitrou
Date 2013-10-21.01:23:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382318630.86.0.926202476295.issue19308@psf.upfronthosting.co.za>
In-reply-to
Content
I ended up with a very similar looking patch - and so merged my changes into Pitrou's patch.

I also had a go at fixing up the `test_gdb` unit test, which revealed a few more string/unicode issues. Finally tracked them down to the `write_unicode` function. Sadly the `write` function in GDB's Python API only accepts unicode strings, hence we must pre-backslash escape for C-string encoding (either Python's default encoding or utf-8 in Python 3.1+) then turn it back into a unicode string again to avoid a TypeError. Yuck.

The patch almost applies on Python 2.7, but needs a little bit of massaging due to slight differences in Tools/gdb/libpython.py. Need to test the new unicode changes haven't broken anything and then I'll upload a patch for Python 2.7.
History
Date User Action Args
2013-10-21 01:23:51dcolessetrecipients: + dcoles, doko, pitrou, dmalcolm
2013-10-21 01:23:50dcolessetmessageid: <1382318630.86.0.926202476295.issue19308@psf.upfronthosting.co.za>
2013-10-21 01:23:50dcoleslinkissue19308 messages
2013-10-21 01:23:50dcolescreate