Message97338
The problem is the cast char => Py_UNICODE in formatchar() function. char may be unsigned, but most of the time it's signed. signed => unsigned cast extend the sign. Example: (unsigned short)(signed char)0x80 gives 0xFF80.
Attached patch fixes the issue and includes an unit test. |
|
Date |
User |
Action |
Args |
2010-01-07 01:55:46 | vstinner | set | recipients:
+ vstinner, doerwalter, eric.smith, ezio.melotti |
2010-01-07 01:55:46 | vstinner | set | messageid: <1262829346.69.0.731343511263.issue7649@psf.upfronthosting.co.za> |
2010-01-07 01:55:45 | vstinner | link | issue7649 messages |
2010-01-07 01:55:45 | vstinner | create | |
|