This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/10705] New: python traceback on bad string character decoding
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 29 Sep 2009 20:00:41 -0000
- Subject: [Bug python/10705] New: python traceback on bad string character decoding
- Reply-to: sourceware-bugzilla at sourceware dot org
GNU gdb (GDB) Fedora (6.8.50.20090302-38.fc11)
In the middle of printing a c++ class which contained a (uninitialized/bad)
string value I got the following python backtrace:
module_name = Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/gdb/libstdcxx/v6/printers.py",
line 453, in to_string
return self.val['_M_dataplus']['_M_p'].string(encoding)
File "/usr/lib64/python2.6/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0:
unexpected code byte
It would be much nicer if it would just say <can't decode string> or something
similar.
--
Summary: python traceback on bad string character decoding
Product: gdb
Version: archer
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned at sourceware dot org
ReportedBy: mjw at redhat dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=10705
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.