Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 10, 2018
Merged

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

merged 1 commit into from
Jan 10, 2018

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