Package: espeakup / 1:0.80-16

unicode Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
commit b7fe3af320226600c6162252f040b21d6323e07c
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Tue Mar 14 21:52:14 2017 -0500

    add unicode variant of /dev/softsynth

diff --git a/softsynth.c b/softsynth.c
index 3394434..efa2351 100644
--- a/softsynth.c
+++ b/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;