From 3dbdcb21cbb28dc6cebd80077a6e774cc2673bb6 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 5 Apr 2009 19:24:36 -0500 Subject: [PATCH] Aespeakup should not drop all non-ascii characters. This fixes an issue with non-english languages. Thanks to Samuel Thibault for the patch. --- softsynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/softsynth.c b/softsynth.c index 80bced0..d233431 100644 --- a/softsynth.c +++ b/softsynth.c @@ -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;