[BRLTTY] Low-level BrlAPI questions

Samuel Thibault samuel.thibault at ens-lyon.org
Mon Apr 12 06:11:21 EDT 2021


Aura Kelloniemi, le lun. 12 avril 2021 12:58:53 +0300, a ecrit:
> I researched the error messages case, and I suspect that they
> might be encoded in whatever character set in the case of C library errors,
> because strerror might return a translated message, which is in the user's
> locale.

Ah, yes, while the brlapi-specific errors are not translated, the libc
errors may be. The principle would be to follow the strerror behavior.

> I also found race conditions from brlapi_strerror. Its result buffer will be
> clobbered,

Oh, I thought it would be per connection handle but it's completely
shared.

> Could a new function brlapi_strerror_r be added that would be re-entrant?

We could define add this indeed.

Samuel


More information about the BRLTTY mailing list