Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jan 15, 2018

  • Add _Py_GetLocaleconvNumeric() function: decode decimal_point and
    thousands_sep fields of localeconv() from the LC_NUMERIC encoding,
    rather than decoding from the LC_CTYPE encoding.
  • Modify locale.localeconv() and "n" formatter of str.format() (for
    int, float and complex to use _Py_GetLocaleconvNumeric()
    internally.

(cherry picked from commit cb064fc)

https://bugs.python.org/issue31900

* Add _Py_GetLocaleconvNumeric() function: decode decimal_point and
  thousands_sep fields of localeconv() from the LC_NUMERIC encoding,
  rather than decoding from the LC_CTYPE encoding.
* Modify locale.localeconv() and "n" formatter of str.format() (for
  int, float and complex to use _Py_GetLocaleconvNumeric()
  internally.

(cherry picked from commit cb064fc)
@vstinner vstinner merged commit 5f959c4 into python:3.6 Jan 15, 2018
@vstinner vstinner deleted the localeconv36 branch January 15, 2018 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants