Message178003
It occurred to me that the truncation of the string when building the error message could cause a UnicodeDecodeError:
>>> int("1".ljust(199) + "\u0100")
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
int("1".ljust(199) + "\u0100")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 199: unexpected end of data
This is because it's truncating a UTF-8 string, and the truncation is in the middle of a multi-byte sequence. |
|
Date |
User |
Action |
Args |
2012-12-23 18:12:34 | mrabarnett | set | recipients:
+ mrabarnett, mark.dickinson, gangesmaster |
2012-12-23 18:12:33 | mrabarnett | set | messageid: <1356286353.8.0.380793055064.issue16741@psf.upfronthosting.co.za> |
2012-12-23 18:12:33 | mrabarnett | link | issue16741 messages |
2012-12-23 18:12:33 | mrabarnett | create | |
|