[BRLTTY] Low-level BrlAPI questions

Samuel Thibault samuel.thibault at ens-lyon.org
Thu Apr 15 11:07:36 EDT 2021


Sébastien Hinderer, le jeu. 15 avril 2021 12:43:37 +0200, a ecrit:
> Dave Mielke (2021/04/15 06:40 -0400):
> > [quoted lines by Samuel Thibault on 2021/04/15 at 12:24 +0200]
> > >> But this function cannot be called safely from languages that are Unicode
> > >> only.
> > >
> > >As mentioned previously, we can add a brlapi_writeUtf8Text, just like we
> > >already have brlapi_writeWText
> > 
> > If my understanding is correct, an unassigned text size means to call
> > strlen(). To me, this is a bug. I think we shouldn't be in the
> > business of ever assuming a single-byte character set these days. Of
> > course there's old code, but it isn't a good thing to be allowing
> > anymore. My personal opinion is that writeText() should be assuming
> > UTF-8.
> 
> I'm guessing that this wouln't be backward compatible, meanign we would
> have to increase protocol and ABI versions, should we want to go that
> way.

The protocol is already that way: text size is in bytes, and regionSize
is in characters.

Samuel


More information about the BRLTTY mailing list