[orca/gnome-3-4] Handle traceback seen with embedded object chars in Yelp



commit a80926c42a11d889c15d8aa0198ab5aad99b10ea
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Jun 2 15:11:21 2012 -0400

    Handle traceback seen with embedded object chars in Yelp

 src/orca/braille.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/braille.py b/src/orca/braille.py
index 75e63ac..79770a1 100644
--- a/src/orca/braille.py
+++ b/src/orca/braille.py
@@ -676,7 +676,10 @@ class Text(Region):
         [string, caretOffset, lineOffset] = \
                  orca_state.activeScript.getTextLineAtCaret(self.accessible,
                                                             self.startOffset)
-        string = string.decode("UTF-8")
+        try:
+            string = string.decode("UTF-8")
+        except:
+            pass
 
         cursorOffset = min(caretOffset - lineOffset, len(string))
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]