<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Modules/readline.c, branch v3.7.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/readline.c?h=v3.7.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Modules/readline.c?h=v3.7.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2018-12-08T14:34:49Z</updated>
<entry>
<title>bpo-35441: Remove dead and buggy code related to PyList_SetItem(). (GH-11033)</title>
<updated>2018-12-08T14:34:49Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-12-08T14:34:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8b7d8ac09cc0f736d0c3a39d838814d7ae253021'/>
<id>urn:sha1:8b7d8ac09cc0f736d0c3a39d838814d7ae253021</id>
<content type='text'>
In _localemodule.c and selectmodule.c, remove dead code that would
cause double decrefs if run.

In addition, replace PyList_SetItem() with PyList_SET_ITEM() in cases
where a new list is populated and there is no possibility of an error.

In addition, check if the list changed size in the loop in array_array_fromlist().
(cherry picked from commit 99d56b53560b3867844472ae381fb3f858760621)

Co-authored-by: Zackery Spytz &lt;zspytz@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-13631: Fix the order of initialization for readline libedit on macOS. (GH-6915) (GH-6928)</title>
<updated>2018-05-17T07:27:33Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-05-17T07:27:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=d504108a88bd14a560dec875df682f4e581490e5'/>
<id>urn:sha1:d504108a88bd14a560dec875df682f4e581490e5</id>
<content type='text'>
The editline emulation needs to be initialized *after* the name is
defined. This fixes the long open issue.
(cherry picked from commit c2f082e9d164acfa8f96de9526f0f47ae92c426a)

Co-authored-by: Zvezdan Petkovic &lt;zpetkovic@acm.org&gt;</content>
</entry>
<entry>
<title>bpo-29240: Fix locale encodings in UTF-8 Mode (#5170)</title>
<updated>2018-01-15T09:45:49Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2018-01-15T09:45:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7ed7aead9503102d2ed316175f198104e0cd674c'/>
<id>urn:sha1:7ed7aead9503102d2ed316175f198104e0cd674c</id>
<content type='text'>
Modify locale.localeconv(), time.tzname, os.strerror() and other
functions to ignore the UTF-8 Mode: always use the current locale
encoding.

Changes:

* Add _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx(). On decoding or
  encoding error, they return the position of the error and an error
  message which are used to raise Unicode errors in
  PyUnicode_DecodeLocale() and PyUnicode_EncodeLocale().
* Replace _Py_DecodeCurrentLocale() with _Py_DecodeLocaleEx().
* PyUnicode_DecodeLocale() now uses _Py_DecodeLocaleEx() for all
  cases, especially for the strict error handler.
* Add _Py_DecodeUTF8Ex(): return more information on decoding error
  and supports the strict error handler.
* Rename _Py_EncodeUTF8_surrogateescape() to _Py_EncodeUTF8Ex().
* Replace _Py_EncodeCurrentLocale() with _Py_EncodeLocaleEx().
* Ignore the UTF-8 mode to encode/decode localeconv(), strerror()
  and time zone name.
* Remove PyUnicode_DecodeLocale(), PyUnicode_DecodeLocaleAndSize()
  and PyUnicode_EncodeLocale() now ignore the UTF-8 mode: always use
  the "current" locale.
* Remove _PyUnicode_DecodeCurrentLocale(),
  _PyUnicode_DecodeCurrentLocaleAndSize() and
  _PyUnicode_EncodeCurrentLocale().</content>
</entry>
<entry>
<title>bpo-29240: Ignore UTF-8 Mode in time module (#5148)</title>
<updated>2018-01-11T09:37:59Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2018-01-11T09:37:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cb3ae5588bd7733e76dc09277bb7626652d9bb64'/>
<id>urn:sha1:cb3ae5588bd7733e76dc09277bb7626652d9bb64</id>
<content type='text'>
time.strftime() must use the current LC_CTYPE encoding, not UTF-8
if the UTF-8 mode is enabled.

Add _PyUnicode_DecodeCurrentLocale() function.</content>
</entry>
<entry>
<title>bpo-29240: readline now ignores the UTF-8 Mode (#5145)</title>
<updated>2018-01-10T21:46:15Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2018-01-10T21:46:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2cba6b85797ba60d67389126f184aad5c9e02ff3'/>
<id>urn:sha1:2cba6b85797ba60d67389126f184aad5c9e02ff3</id>
<content type='text'>
Add new fuctions ignoring the UTF-8 mode:

* _Py_DecodeCurrentLocale()
* _Py_EncodeCurrentLocale()
* _PyUnicode_DecodeCurrentLocaleAndSize()
* _PyUnicode_EncodeCurrentLocale()

Modify the readline module to use these functions.

Re-enable test_readline.test_nonascii().</content>
</entry>
<entry>
<title>Fix CID-1414686: PyInit_readline() handles errors (#4647)</title>
<updated>2017-11-30T16:21:07Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-11-30T16:21:07Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0efc0249ca1fd0675098957407fbba2c0f6949ce'/>
<id>urn:sha1:0efc0249ca1fd0675098957407fbba2c0f6949ce</id>
<content type='text'>
Handle PyModule_AddIntConstant() and PyModule_AddStringConstant()
failures. Add also constants before calling setup_readline(), since
setup_readline() registers callbacks which uses a reference to the
module, whereas the module is destroyed if adding constants fails.

Fix Coverity warning:

CID 1414686: Unchecked return value (CHECKED_RETURN)
2. check_return: Calling PyModule_AddStringConstant without checking
return value (as is done elsewhere 45 out of 55 times).</content>
</entry>
<entry>
<title>bpo-28180: Fix the implementation of PEP 538 on Android (GH-4334)</title>
<updated>2017-11-12T11:45:59Z</updated>
<author>
<name>xdegaye</name>
<email>xdegaye@gmail.com</email>
</author>
<published>2017-11-12T11:45:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1588be66d7b0eeebc4614309cd0fc837ff52776a'/>
<id>urn:sha1:1588be66d7b0eeebc4614309cd0fc837ff52776a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-31370: Remove support for threads-less builds (#3385)</title>
<updated>2017-09-07T16:56:24Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2017-09-07T16:56:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344'/>
<id>urn:sha1:a6a4dc816d68df04a7d592e0b6af8c7ecc4d4344</id>
<content type='text'>
* Remove Setup.config
* Always define WITH_THREAD for compatibility.

</content>
</entry>
<entry>
<title>bpo-30946: Remove obsolete fallback code in readline module (#2738)</title>
<updated>2017-07-18T15:05:03Z</updated>
<author>
<name>Antoine Pitrou</name>
<email>pitrou@free.fr</email>
</author>
<published>2017-07-18T15:05:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=f474c5a3f3c1fbc0383800b88e8518d43a52d1d1'/>
<id>urn:sha1:f474c5a3f3c1fbc0383800b88e8518d43a52d1d1</id>
<content type='text'>
* Remove obsolete fallback code in readline module

* Add NEWS

* Remove obsolete include

* Fix macro on Windows
</content>
</entry>
<entry>
<title>bpo-29854: test_readline logs versions (#2619)</title>
<updated>2017-07-07T14:06:58Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-07-07T14:06:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1881befb905553618f1e7ad2cef8f6ff07e1b8ef'/>
<id>urn:sha1:1881befb905553618f1e7ad2cef8f6ff07e1b8ef</id>
<content type='text'>
* test_readline logs the versions of libreadline when run in verbose
  mode
* Add also readline._READLINE_LIBRARY_VERSION</content>
</entry>
</feed>
