[BRLTTY] Low-level BrlAPI questions
Aura Kelloniemi
kaura.dev at sange.fi
Wed Apr 14 09:53:13 EDT 2021
On 2021-04-14 at 15:29 +0200, Samuel Thibault <samuel.thibault at ens-lyon.org> wrote:
> Sorry, since I'm at work and thus answering without looking much, I
> missed that we already had the text length in textSize, which precisely
> avoids the concerns with using strlen(). That's what I meant we could
> use.
No problem.
Your suggestion still has the problem with multi-byte character encodings.
textSize holds the text size in bytes, not the number of code points. We
cannot dereve the lengths of the masks from that number.
--
Aura
More information about the BRLTTY
mailing list