[orca/570658] Make sure we deal with unicode internally, but UTF-8 externally
- From: William Walker <wwalker src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca/570658] Make sure we deal with unicode internally, but UTF-8 externally
- Date: Wed, 1 Jul 2009 17:08:05 +0000 (UTC)
commit d1812fdb5d96af6f77f723e3dd091f031d573749
Author: Willie Walker <william walker sun com>
Date: Wed Jul 1 10:39:09 2009 -0400
Make sure we deal with unicode internally, but UTF-8 externally
src/orca/scripts/toolkits/Gecko/script.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index 29a5cd9..3458b91 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -5020,7 +5020,7 @@ class Script(default.Script):
candidate, startOffset, endOffset, string = content
if self.isSameObject(candidate, obj) \
and (offset is None or (startOffset <= offset <= endOffset)):
- return string, caretOffset, startOffset
+ return string.encode("UTF-8"), caretOffset, startOffset
# If we're still here, obj presumably is not on this line. This
# shouldn't happen, but if it does we'll let the default script
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]