solenv/gdb/libreoffice/sw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 0e81a404922c9b760638c230eea9cebf40a1694e Author: Michael Stahl <mst...@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.me...@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": _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits