[issue33578] cjkcodecs missing getstate and setstate implementations

2018-05-19 Thread Christopher Thorne
New submission from Christopher Thorne : The cjkcodecs module provides support for various Chinese/Japanese/Korean codecs through its MultibyteIncrementalDecoder and MultibyteIncrementalEncoder classes. While working with one of these cjkcodecs (euc-jp), I came across an issue where calling

[issue33578] cjkcodecs missing getstate and setstate implementations

2018-06-05 Thread Christopher Thorne
Christopher Thorne added the comment: Ah, good find. I suppose that means `MultibyteCodec_State` and `pending` are both needed to fully capture state, as is done in `decoder.getstate`/`setstate` by returning a tuple of both. Unfortunately `encoder.getstate` is defined to return an integer

[issue33578] cjkcodecs missing getstate and setstate implementations

2018-06-07 Thread Christopher Thorne
Christopher Thorne added the comment: Thanks Naoki, that simplifies things a lot. I've updated the PR with a new test case for ISO-2022-JP and a corresponding implementation for the encoder state methods. -- ___ Python tracker &

[issue33578] cjkcodecs missing getstate and setstate implementations

2018-11-01 Thread Christopher Thorne
Change by Christopher Thorne : -- pull_requests: +9600 ___ Python tracker <https://bugs.python.org/issue33578> ___ ___ Python-bugs-list mailing list Unsubscribe: