Skip to content

[3.7] bpo-34485: Fix _Py_InitializeCore() for C locale coercion (GH-8979) #8981

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

Merged
merged 1 commit into from
Aug 28, 2018
Merged

[3.7] bpo-34485: Fix _Py_InitializeCore() for C locale coercion (GH-8979) #8981

merged 1 commit into from
Aug 28, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Aug 28, 2018

  • _Py_InitializeCore() now sets the LC_CTYPE locale to the user
    preferred locale before checking if the C locale should be coerced
    or not in _PyCoreConfig_Read().
  • Fix pymain_read_conf(): remember if the C locale has been coerced
    when the configuration should be read again if the encoding has
    changed.

(cherry picked from commit 2c8ddcf)

https://bugs.python.org/issue34485

* _Py_InitializeCore() now sets the LC_CTYPE locale to the user
  preferred locale before checking if the C locale should be coerced
  or not in _PyCoreConfig_Read().
* Fix pymain_read_conf(): remember if the C locale has been coerced
  when the configuration should be read again if the encoding has
  changed.

(cherry picked from commit 2c8ddcf)
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