[BUG] speechd-up fails to detect one-character messages
Hynek Hanke
hanke at brailcom.org
Mon Jan 14 11:34:24 CET 2008
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
More information about the Speechd
mailing list