summaryrefslogtreecommitdiff
path: root/Modules/cjkcodecs/multibytecodec.h
Commit message (Collapse)AuthorAgeFilesLines
* bpo-33578: Add getstate/setstate for CJK codec (GH-6984)Christopher Thorne2018-11-011-5/+8
| | | | | | | | This implements getstate and setstate for the cjkcodecs multibyte incremental encoders/decoders, primarily to fix issues with seek/tell. The encoder getstate/setstate is slightly tricky as the "state" is pending bytes + MultibyteCodec_State but only an integer can be returned. The approach I've taken is to encode this data into a long, similar to how .tell() encodes a "cookie_type" as a long. https://bugs.python.org/issue33578
* CJK codecs: less magic macros, require explicit semicolonVictor Stinner2013-10-291-5/+5
|
* Issue #18408: Fix cjkcodecs decoders, add a new MBERR_EXCEPTION constant toVictor Stinner2013-07-161-0/+1
| | | | notify exceptions raised by the _PyUnicodeWriter API
* Issue #17693: CJK encoders now use the new Unicode API (PEP 393)Victor Stinner2013-04-141-3/+3
|
* Close #17693: Rewrite CJK decoders to use the _PyUnicodeWriter API instead ofVictor Stinner2013-04-111-8/+2
| | | | | | the legacy Py_UNICODE API. Add also a new _PyUnicodeWriter_WriteChar() function.
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-66/+66
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* add a replacement API for PyCObject, PyCapsule #5630Benjamin Peterson2009-05-051-0/+3
| | | | | | All stdlib modules with C-APIs now use this. Patch by Larry Hastings
* Merge p3yk branch with the trunk up to revision 45595. This breaks a fairThomas Wouters2006-04-211-14/+46
| | | | | | | | | | | | | | | | | | | | number of tests, all because of the codecs/_multibytecodecs issue described here (it's not a Py3K issue, just something Py3K discovers): http://mail.python.org/pipermail/python-dev/2006-April/064051.html Hye-Shik Chang promised to look for a fix, so no need to fix it here. The tests that are expected to break are: test_codecencodings_cn test_codecencodings_hk test_codecencodings_jp test_codecencodings_kr test_codecencodings_tw test_codecs test_multibytecodec This merge fixes an actual test failure (test_weakref) in this branch, though, so I believe merging is the right thing to do anyway.
* - Modernize code to use Py_ssize_t more intensively.Hye-Shik Chang2006-03-041-16/+16
| | | | - Do some minor code clean-ups.
* Bring CJKCodecs 1.1 into trunk. This completely reorganizes sourceHye-Shik Chang2004-07-181-49/+67
| | | | | | and installed layouts to make maintenance simple and easy. And it also adds four new codecs; big5hkscs, euc-jis-2004, shift-jis-2004 and iso2022-jp-2004.
* Add CJK codecs support as discussed on python-dev. (SF #873597)Hye-Shik Chang2004-01-171-0/+88
Several style fixes are suggested by Martin v. Loewis and Marc-Andre Lemburg. Thanks!