Date: Sat, 4 Mar 2017 20:46:45 +0100
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: William Hubbs <w.d.hubbs@gmail.com>, speakup@linux-speakup.org
Subject: Add unicode support to espeakup (Was: speakup: add unicode variant
 of /dev/softsynth)

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;

