diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-02-06 19:46:19 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-02-20 17:01:26 +0000 |
commit | 0e81a404922c9b760638c230eea9cebf40a1694e (patch) | |
tree | 30b9991a725e87afb79e83713985c9f63ddb1906 /solenv | |
parent | a86b99f368bdc5fb9f0461129808b31f5d2e3401 (diff) |
gdb: don't barf on non-ASCII text in SwTxtNode
Because the default text encoding in Python 2 is "ascii" these would
throw a UnicodeEncodeError: 'ascii' codec can't encode character...
Signed-off-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gdb/libreoffice/sw.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py index 8f25522c9dee..8325bfa25918 100644 --- a/solenv/gdb/libreoffice/sw.py +++ b/solenv/gdb/libreoffice/sw.py @@ -100,7 +100,7 @@ class BigPtrArrayPrinter(object): # accessing this is completely non-obvious... # also, node.dynamic_cast(node.dynamic_type) is null? value = " TextNode " + \ - str(node.cast(node.dynamic_type).dereference()['m_Text']) + unicode(node.cast(node.dynamic_type).dereference()['m_Text']) elif str(node.dynamic_type.target()) == "SwOLENode": value = " OLENode " elif str(node.dynamic_type.target()) == "SwGrfNode": |