[orca] Yet another sanity check....



commit c3afe19f6e3d884488d4179f30bcb009e25573e5
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Mon Sep 19 18:23:27 2011 -0400

    Yet another sanity check....

 src/orca/scripts/toolkits/Gecko/script.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 92c1123..304f7ef 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -5320,7 +5320,11 @@ class Script(default.Script):
             elif acss == clumped[-1][1] \
                  and isinstance(element, basestring) \
                  and isinstance(clumped[-1][0], basestring):
-                clumped [-1][0] = clumped[-1][0].rstrip(" ")
+                clumped[-1][0] = clumped[-1][0].rstrip(" ")
+                try:
+                    clumped[-1][0] = clumped[-1][0].decode("UTF-8")
+                except UnicodeEncodeError:
+                    pass
                 try:
                     element = element.decode("UTF-8")
                 except UnicodeEncodeError:



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