[BRLTTY] missing error checks?

Mario Lang mlang at delysid.org
Sun Jun 3 09:01:54 EDT 2007


Hi.

The following python session is reproducible for me with latest svn:

Python 2.4.4 (#2, Apr 25 2007, 22:41:41)
[GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import brlapi
>>> c = brlapi.Connection()
>>> c.enterTtyMode(2)
2
>>> c.readKey(1)
536870914L
>>> c.write(text="Hello")
0
>>> c.readKey(1)
BrlAPI exception: Invalid packet on Write request of size 13 (04 00 00 00 00 00
00 05 48 65 6c 6c 6f)
You may wish to add the -ldebug option to the brltty command line in order to ge
t additional information in the system log
Aborted

This should not really happen.  I guess the error comes from
too few parameters to write().

-- 
CYa,
  Mario | Debian Developer <URL:http://debian.org/>
  .''`. | Get my public key via finger mlang at db.debian.org
 : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
 `. `'
   `-      <URL:http://delysid.org/>  <URL:http://www.staff.tugraz.at/mlang/>


More information about the BRLTTY mailing list