summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-02-06 19:46:19 +0100
committerMichael Stahl <mstahl@redhat.com>2012-02-07 00:44:26 +0100
commit89b68f682e40f1bdc6c967bf38308504fae70d82 (patch)
tree7da7ebf6cefdb12f0c2d387ef479a6a0fe31b154 /solenv
parentbc95b9901c42254a0b44be2d9adb5d10aeba9aac (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...
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gdb/libreoffice/sw.py2
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":