mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-22 07:44:16 +02:00
add unicode variant of /dev/softsynth
This commit is contained in:
parent
e21b746eb9
commit
b7fe3af320
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue