Message1611
When using UDP sockets in Jython, calling sendto (socket.py:356) will raise "OverflowError: value too large for byte"
The problematic line is 361:
bytes = jarray.array(map(ord, data), 'b')
This seems to be due to a difference between the results of a call to "ord" and the java defintion of a byte.
Ord returns values between 0 and 255, while a java byte is a value between -128 and 127.
Thus if a character has an ascii code > 127 this error occurs. |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:50 | admin | link | issue1722306 messages |
2008-02-20 17:17:50 | admin | create | |
|