Change by Christopher Thorne :
--
pull_requests: +9600
___
Python tracker
<https://bugs.python.org/issue33578>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
&
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
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