[orca] Yet another fix for Bug 659122 - Orca 3.1.91 and master version producing unicode decode error trace
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Yet another fix for Bug 659122 - Orca 3.1.91 and master version producing unicode decode error trace
- Date: Thu, 15 Sep 2011 17:06:36 +0000 (UTC)
commit f871b84413d32ec5d083086006ec40f723f3c880
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Thu Sep 15 13:03:44 2011 -0400
Yet another fix for Bug 659122 - Orca 3.1.91 and master version producing unicode decode error traceback with speech generation if I using hungarian locale
src/orca/speech.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/speech.py b/src/orca/speech.py
index f6c7841..b05f1f9 100644
--- a/src/orca/speech.py
+++ b/src/orca/speech.py
@@ -258,6 +258,11 @@ def speak(content, acss=None, interrupt=True):
element.play()
if toSpeak:
+ try:
+ toSpeak = map(lambda x: x.decode("UTF-8"), toSpeak)
+ except UnicodeEncodeError:
+ debug.printException(debug.LEVEL_FINEST)
+
string = " ".join(toSpeak)
_speak(string, activeVoice, interrupt)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]