Message246782
> Happens for all the multibyte codecs: (...)
All these codecs share the same C implementation: the "CJK" codecs.
The bug was introduced in Python 3.4 by my huge changeset d621bdaed7c3: Issue "#17693: CJK encoders now use the new Unicode API (PEP 393)".
It looks like there was no test for this specific bug :-/ Calling reset() just after creating a StreamReader object.
Attached patch should fix the crash.
@Aaron1011: Can you please try to write a patch adding a unit test to test_codecs reproducing the crash? |
|
Date |
User |
Action |
Args |
2015-07-15 23:00:55 | vstinner | set | recipients:
+ vstinner, ezio.melotti, martin.panter, serhiy.storchaka, Aaron1011 |
2015-07-15 23:00:54 | vstinner | set | messageid: <1437001254.98.0.366204839153.issue23247@psf.upfronthosting.co.za> |
2015-07-15 23:00:54 | vstinner | link | issue23247 messages |
2015-07-15 23:00:54 | vstinner | create | |
|