Message97338
| Author |
vstinner |
| Recipients |
doerwalter, eric.smith, ezio.melotti, vstinner |
| Date |
2010年01月07日.01:55:44 |
| SpamBayes Score |
5.369207e-05 |
| Marked as misclassified |
No |
| Message-id |
<1262829346.69.0.731343511263.issue7649@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|