[issue43557] Deprecate getdefaultlocale(), getlocale() and normalize() functions

2022-02-24 Thread STINNER Victor
STINNER Victor added the comment: > Deprecating these functions is complex. I prefer to start with the least > controversial part: bpo-46659. locale.getdefaultlocale() is now deprecated in Python 3.11. -- ___ Python tracker

[issue43557] Deprecate getdefaultlocale(), getlocale() and normalize() functions

2022-02-07 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +29376 stage: -> patch review pull_request: https://github.com/python/cpython/pull/31206 ___ Python tracker ___ _

[issue43557] Deprecate getdefaultlocale(), getlocale() and normalize() functions

2022-02-06 Thread STINNER Victor
STINNER Victor added the comment: Deprecating these functions is complex. I prefer to start with the least controversial part: bpo-46659. -- ___ Python tracker ___ __

[issue43557] Deprecate getdefaultlocale(), getlocale() and normalize() functions

2021-03-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: +1 on getdefaultlocale() as mentioned in https://bugs.python.org/issue43552 However, -1 on getlocale() and normalize(). Those two are needed to access and successfully set the locale on Linux: the lib C setlocale() is very picky about locale names and so

[issue43557] Deprecate getdefaultlocale(), getlocale() and normalize() functions

2021-03-19 Thread STINNER Victor
New submission from STINNER Victor : I propose to deprecate getdefaultlocale(), getlocale() and normalize() functions since they have multiple issues, and remove them in Python 3.12. The normalize() function uses the locale.locale_alias dictionary which was copied from the X11 locale databas