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
_______________________________________________
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://mielke.cc/mailman/listinfo/brltty

Reply via email to