]> granicus.if.org Git - python/commit
bpo-29240: readline now ignores the UTF-8 Mode (#5145)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 10 Jan 2018 21:46:15 +0000 (22:46 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Jan 2018 21:46:15 +0000 (22:46 +0100)
commit2cba6b85797ba60d67389126f184aad5c9e02ff3
tree5cc0972b12e1c85e58c4ff57edc312882f107ff1
parentf80c0ca13330112fe4d8018609c085ef556cb5bf
bpo-29240: readline now ignores the UTF-8 Mode (#5145)

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().
Include/fileutils.h
Include/unicodeobject.h
Lib/test/test_readline.py
Modules/readline.c
Objects/unicodeobject.c
Python/fileutils.c