<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Modules/cjkcodecs/_codecs_cn.c, branch master</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-33578: Add getstate/setstate for CJK codec (GH-6984)</title>
<updated>2018-11-01T10:48:49+00:00</updated>
<author>
<name>Christopher Thorne</name>
<email>libcthorne@users.noreply.github.com</email>
</author>
<published>2018-11-01T10:48:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ac22f6aa989f18c33c12615af1c66c73cf75d5e7'/>
<id>ac22f6aa989f18c33c12615af1c66c73cf75d5e7</id>
<content type='text'>
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</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-30003: Fix handling escape characters in HZ codec (#1556)</title>
<updated>2017-05-22T14:42:05+00:00</updated>
<author>
<name>Xiang Zhang</name>
<email>angwerzx@126.com</email>
</author>
<published>2017-05-22T14:42:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=89a5e03244370f41ce9bed5cea38e0dd620edb73'/>
<id>89a5e03244370f41ce9bed5cea38e0dd620edb73</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-29990: Fix range checking in GB18030 decoder (#1495)</title>
<updated>2017-05-09T03:38:32+00:00</updated>
<author>
<name>Xiang Zhang</name>
<email>angwerzx@126.com</email>
</author>
<published>2017-05-09T03:38:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=9da408d15bdef624a5632182cb4edf98001fa82f'/>
<id>9da408d15bdef624a5632182cb4edf98001fa82f</id>
<content type='text'>
When decoding a 4-byte GB18030 sequence, the first and third byte cannot exceed 0xFE.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When decoding a 4-byte GB18030 sequence, the first and third byte cannot exceed 0xFE.</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #23181: More "codepoint" -&gt; "code point".</title>
<updated>2015-01-18T09:28:37+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-01-18T09:28:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d3faf43f9ba7da0ae504c9186b10d0fa3a8eb300'/>
<id>d3faf43f9ba7da0ae504c9186b10d0fa3a8eb300</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>CJK codecs: less magical macros, semicolon is now explicit</title>
<updated>2013-10-28T23:59:44+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2013-10-28T23:59:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=28c63f7ffb9f9cb59c524dc14ce66d34c0e83af6'/>
<id>28c63f7ffb9f9cb59c524dc14ce66d34c0e83af6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>CJK codecs: less magic macros, require explicit semicolon</title>
<updated>2013-10-28T23:19:27+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2013-10-28T23:19:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=14c9fea60aa6884586c0a87046b308c2af76d38d'/>
<id>14c9fea60aa6884586c0a87046b308c2af76d38d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>CJK codecs: add newlines for readability</title>
<updated>2013-10-28T23:09:41+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2013-10-28T23:09:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=146a2ed0f29a338abe7ea954604ee0f68b35c37f'/>
<id>146a2ed0f29a338abe7ea954604ee0f68b35c37f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>CJK codecs: use less magic and more readable macros, write explicit if</title>
<updated>2013-10-28T22:54:13+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2013-10-28T22:54:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bd97ac35f7cab6229243e2c93b6fa6eaf7f0cc19'/>
<id>bd97ac35f7cab6229243e2c93b6fa6eaf7f0cc19</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #18509: handle PyUnicode_Writer() error</title>
<updated>2013-10-28T22:18:39+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2013-10-28T22:18:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=11bdf91a5f408a447c4c03db820e437d250e7999'/>
<id>11bdf91a5f408a447c4c03db820e437d250e7999</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #17693: CJK encoders now use the new Unicode API (PEP 393)</title>
<updated>2013-04-14T00:06:32+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2013-04-14T00:06:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d949126995a7ff63590285aa816da65d97a31403'/>
<id>d949126995a7ff63590285aa816da65d97a31403</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
