<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/codecs.c, branch 3.4</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>Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),</title>
<updated>2015-05-30T14:45:22+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-05-30T14:45:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=fa494fd88384acc52cf9292d0c89e2961c8f747f'/>
<id>fa494fd88384acc52cf9292d0c89e2961c8f747f</id>
<content type='text'>
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #24102: Fixed exception type checking in standard error handlers.</title>
<updated>2015-05-18T13:08:52+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-05-18T13:08:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=ca7fecb0389466ef1b995e69c92ea076d4c52498'/>
<id>ca7fecb0389466ef1b995e69c92ea076d4c52498</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22518: Fixed integer overflow issues in "backslashreplace",</title>
<updated>2014-10-04T11:15:49+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2014-10-04T11:15:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2e374098ff791c81576ff2ba2961dc5011a693bf'/>
<id>2e374098ff791c81576ff2ba2961dc5011a693bf</id>
<content type='text'>
"xmlcharrefreplace", and "surrogatepass" error handlers.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"xmlcharrefreplace", and "surrogatepass" error handlers.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed reference leak in the "backslashreplace" error handler.</title>
<updated>2014-09-23T16:59:09+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2014-09-23T16:59:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8aa8c47db2f0205dec61d50274817cf6b0b15e0a'/>
<id>8aa8c47db2f0205dec61d50274817cf6b0b15e0a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #22166: clear codec caches in test_codecs</title>
<updated>2014-09-15T11:50:44+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2014-09-15T11:50:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8fad1676a215bab3e61dccf0f1802ccb17a43a41'/>
<id>8fad1676a215bab3e61dccf0f1802ccb17a43a41</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Close #20404: blacklist non-text encodings in io.TextIOWrapper</title>
<updated>2014-02-04T12:11:18+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2014-02-04T12:11:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a9b15241c6bdf8ac71f1dc598b7c01a20518b6a7'/>
<id>a9b15241c6bdf8ac71f1dc598b7c01a20518b6a7</id>
<content type='text'>
- io.TextIOWrapper (and hence the open() builtin) now use the
  internal codec marking system added for issue #19619
- also tweaked the C code to only look up the encoding once,
  rather than multiple times
- the existing output type checks remain in place to deal with
  unmarked third party codecs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- io.TextIOWrapper (and hence the open() builtin) now use the
  internal codec marking system added for issue #19619
- also tweaked the C code to only look up the encoding once,
  rather than multiple times
- the existing output type checks remain in place to deal with
  unmarked third party codecs.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #19619: Blacklist non-text codecs in method API</title>
<updated>2013-11-22T12:39:36+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2013-11-22T12:39:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c72e4e6dccce99bcdcb45959767436d7e5cfda8c'/>
<id>c72e4e6dccce99bcdcb45959767436d7e5cfda8c</id>
<content type='text'>
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.

The latter mechanism remains in place for third party non-text
encodings.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.

The latter mechanism remains in place for third party non-text
encodings.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates.</title>
<updated>2013-11-19T09:32:41+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2013-11-19T09:32:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=58cf607d13c178f41aed05458296b68e985c5fff'/>
<id>58cf607d13c178f41aed05458296b68e985c5fff</id>
<content type='text'>
The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.

Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The utf-16* and utf-32* encoders no longer allow surrogate code points
(U+D800-U+DFFF) to be encoded.
The utf-32* decoders no longer decode byte sequences that correspond to
surrogate code points.
The surrogatepass error handler now works with the utf-16* and utf-32* codecs.

Based on patches by Victor Stinner and Kang-Hao (Kenny) Lu.
</pre>
</div>
</content>
</entry>
<entry>
<title>Close 19609: narrow scope of codec exc chaining</title>
<updated>2013-11-15T11:47:37+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2013-11-15T11:47:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c4c2580d43880ac2013aff5e72674bae379c99a4'/>
<id>c4c2580d43880ac2013aff5e72674bae379c99a4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Close #17828: better handling of codec errors</title>
<updated>2013-11-13T13:49:21+00:00</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2013-11-13T13:49:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8b097b4ed726b8282fce582cb2c20ab9c986fc21'/>
<id>8b097b4ed726b8282fce582cb2c20ab9c986fc21</id>
<content type='text'>
- output type errors now redirect users to the type-neutral
  convenience functions in the codecs module
- stateless errors that occur during encoding and decoding
  will now be automatically wrapped in exceptions that give
  the name of the codec involved
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- output type errors now redirect users to the type-neutral
  convenience functions in the codecs module
- stateless errors that occur during encoding and decoding
  will now be automatically wrapped in exceptions that give
  the name of the codec involved
</pre>
</div>
</content>
</entry>
</feed>
