Skip to content

bpo-29240: readline now ignores the UTF-8 Mode#5145

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:current_locale
Jan 10, 2018
Merged

bpo-29240: readline now ignores the UTF-8 Mode#5145
vstinner merged 1 commit intopython:masterfrom
vstinner:current_locale

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jan 10, 2018

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().

https://bugs.python.org/issue29240

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().
@vstinner
Copy link
Member Author

I tested manually that this change fixes test_readline.test_nonascii() on FreeBSD.

@vstinner vstinner merged commit 2cba6b8 into python:master Jan 10, 2018
@vstinner vstinner deleted the current_locale branch January 10, 2018 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants