Add unicode support to espeakup (Was: speakup: add unicode variant of /dev/softsynth)

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

 



Hello William,

Could you commit this to the espeakup repository?  That's all we need to
do on the espeakup side to support unicode :)

Samuel

Index: espeakup-0.80/softsynth.c
===================================================================
--- espeakup-0.80.orig/softsynth.c
+++ espeakup-0.80/softsynth.c
@@ -235,7 +235,10 @@ int open_softsynth(void)
 	}
 
 	/* open the softsynth. */
-	softFD = open("/dev/softsynth", O_RDWR | O_NONBLOCK);
+	softFD = open("/dev/softsynthu", O_RDWR | O_NONBLOCK);
+	if (softFD < 0 && errno == ENOENT)
+		/* Kernel without unicode support?  Try without unicode.  */
+		softFD = open("/dev/softsynth", O_RDWR | O_NONBLOCK);
 	if (softFD < 0) {
 		perror("Unable to open the softsynth device");
 		rc = -1;
_______________________________________________
Speakup mailing list
Speakup@xxxxxxxxxxxxxxxxx
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux