speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] speechd-up fails to detect one-character messages


From: Hynek Hanke
Subject: [BUG] speechd-up fails to detect one-character messages
Date: Mon, 14 Jan 2008 11:34:24 +0100

Alexander E. Patrakov wrote:
>> I tried to cleanup the code in CVS (http://www.freebsoft.org/speechd-up)
>> and make the single character handling a bit more general, so now this
>> should work and not interfere with controll commands. Could you
>> please test if it is fixed now?
>>     
> This particular bug no longer exists with the English language.
> However, the use of isprint() is questionable for other languages:
> speechd-up never calls setlocale(), and this means that all non-ASCII
> (i.e., 0x80..0xff) characters will be omitted from being counted
> (because the default "C" locale is used).
>   
You are right. I've inverted the isprint test to !isspace() and set 
locale to "C".
The controll characters should already be parsed out at that place.

Thank you,
Hynek Hanke


reply via email to

[Prev in Thread] Current Thread [Next in Thread]