public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/10705] New: python traceback on bad string character decoding
@ 2009-09-29 20:00 mjw at redhat dot com
  2009-09-29 20:01 ` [Bug python/10705] " tromey at redhat dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: mjw at redhat dot com @ 2009-09-29 20:00 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-01-15 23:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-29 20:00 [Bug python/10705] New: python traceback on bad string character decoding mjw at redhat dot com
2009-09-29 20:01 ` [Bug python/10705] " tromey at redhat dot com
2009-10-01  7:33 ` pmuldoon at redhat dot com
2009-10-19 20:06 ` tromey at redhat dot com
2009-10-20  0:40 ` ppluzhnikov at google dot com
2009-11-24 17:17 ` tromey at redhat dot com
2010-01-14  8:03 ` cvs-commit at gcc dot gnu dot org
2010-01-14 19:47 ` tromey at redhat dot com
2010-01-15 23:43 ` pmuldoon at redhat dot com
2010-01-15 23:43 ` pmuldoon at redhat dot com
2010-01-15 23:44 ` pmuldoon at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).