[Libreoffice-commits] .: Branch 'libreoffice-3-5' - solenv/gdb
Michael Meeks
michael at kemper.freedesktop.org
Mon Feb 20 09:01:46 PST 2012
solenv/gdb/libreoffice/sw.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0e81a404922c9b760638c230eea9cebf40a1694e
Author: Michael Stahl <mstahl at redhat.com>
Date: Mon Feb 6 19:46:19 2012 +0100
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 at suse.com>
diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py
index 8f25522..8325bfa 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":
More information about the Libreoffice-commits
mailing list