speakup: add unicode variant of /dev/softsynth
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 4 Mar 2017 14:01:57 +0000 (15:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 16:29:14 +0000 (17:29 +0100)
commit425e586cf95b83b424bc949ea1c0c8bb2a2be608
tree5bf2c8f2ac46343c6ff98fed90efa5d97d796784
parent9831013cbdbd3d06430a1db01d8c32d50c7d1c04
speakup: add unicode variant of /dev/softsynth

This adds /dev/softsynthu, along /dev/softsynth, which emits output in
UTF-8 encoding, thus allowing to support 16bit characters.  Most of the
code is shared, only the read function has to behave differently in
latin1 and in unicode mode.  Since Linux only supports 16bit characters,
we can just hardcode the UTF-8 encoding.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Chris Brannon <chris@the-brannons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/speakup_soft.c