mirror of
https://github.com/linux-speakup/espeakup.git
synced 2026-08-18 13:59:11 +02:00
Aespeakup should not drop all non-ascii characters.
This fixes an issue with non-english languages. Thanks to Samuel Thibault for the patch.
This commit is contained in:
parent
9551ba81d9
commit
3dbdcb21cb
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ static void process_buffer(struct synth_t *s, char *buf, ssize_t length)
|
|||
start = 0;
|
||||
end = 0;
|
||||
while (start < length) {
|
||||
while (isprint(buf[end]) && end < length)
|
||||
while ((buf[end] < 0 || buf[end] >= ' ') && end < length)
|
||||
end++;
|
||||
if (end != start) {
|
||||
txtLen = end - start;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue