[BRLTTY] New release coming soon.

Nicolas Pitre nico at fluxnic.net
Tue Dec 17 23:35:37 EST 2013


On Tue, 17 Dec 2013, Nicolas Pitre wrote:

> On Wed, 18 Dec 2013, Eric Scheibler wrote:
> 
> > Dave Mielke <dave at mielke.cc> schrieb am 17.12.2013, 17:39 -0500:
> > >This fix has now been committed to the repository.
> > >
> > >Eric: Please update and give it a try.
> > 
> > Loaded rev 8268M. Again worse. Now almost every character is doubled by another one, often not the same. Typing is no
> > longer possible if the char echo is activated.
> 
> I know what the problem is.  I'll post a fix shortly.

Here's the fix.  When creating the sayText request, the data block 
should make room for and copy the terminating null character.

Also the attributes don't have the same length as the actual text.

diff --git a/Programs/spk_thread.c b/Programs/spk_thread.c
index 9b06b72..0596e28 100644
--- a/Programs/spk_thread.c
+++ b/Programs/spk_thread.c
@@ -365,8 +365,8 @@ speechFunction_sayText (
   SpeechRequest *req;
 
   SpeechRequestDatum data[] = {
-    {.address=text, .size=length},
-    {.address=attributes, .size=length},
+    {.address=text, .size=length+1},
+    {.address=attributes, .size=count},
     {.end=1}
   };
 


Nicolas


More information about the BRLTTY mailing list