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 _______________________________________________ This message was sent via the BRLTTY mailing list. To post a message, send an e-mail to: [email protected] For general information, go to: http://brltty.app/mailman/listinfo/brltty
