[BRLTTY] Specifying charset in BRLAPI_PACKET_WRITE
Milan Zamazal
to-news-brltty at zamazal.org
Wed Nov 28 07:02:55 EST 2007
It's unclear to me how to use the character coding setting in the
BRLAPI_PACKET_WRITE packet when talking to BrlAPI via a raw TCP
connection. It works for me only when the charset is ISO 8859-1.
When I send an ISO 8859-1 text and set the charset argument to
ISO-8859-1, all characters are displayed correctly and BRLTTY doesn't
log any error.
But when I send an ISO 8859-2 text and set the charset packet argument
to ISO-8859-2, only ISO 8859-1 characters (common to the ISO 8859-2
character set) get displayed correctly, while the "pure" ISO 8859-2
characters are replaced with question marks and additionally BRLTTY logs
the following:
brltty: Received Write request on fd 16
brltty: charset ISO-8859-2
brltty: iconv (wchar_t -> unsigned char) error 84: Invalid or incomplete multibyte or wide character.
brltty: iconv (wchar_t -> unsigned char) error 84: Invalid or incomplete multibyte or wide character.
...
Do I do anything wrong? Reading BrlAPI protocol reference, I'd expect
that I should send the text encoded in ISO 8859-2 and set the charset
argument to ISO 8859-2. Is it a different way?
Thanks,
Milan Zamazal
More information about the BRLTTY
mailing list