[orca] Fix for bug #641033 - Sanity check needed before sending language to speech dispatcher



commit 97cc84afa5e4a140a1170bd7f5eb855791ee0488
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Mon Jan 31 09:13:23 2011 -0500

    Fix for bug #641033 - Sanity check needed before sending language to speech dispatcher

 src/orca/speechdispatcherfactory.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/speechdispatcherfactory.py b/src/orca/speechdispatcherfactory.py
index ef6e9db..8bc1b0d 100644
--- a/src/orca/speechdispatcherfactory.py
+++ b/src/orca/speechdispatcherfactory.py
@@ -236,7 +236,7 @@ class SpeechServer(speechserver.SpeechServer):
         if familyLocale:
             lang = familyLocale.split('_')[0]
             if lang and len(lang) == 2:
-                self._send_command(self._client.set_language, lang)
+                self._send_command(self._client.set_language, str(lang))
         try:
             # This command is not available with older SD versions.
             set_synthesis_voice = self._client.set_synthesis_voice



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