This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: locale.setlocale example incorrect
Type: enhancement Stage:
Components: Documentation Versions: Python 3.8, Python 3.7, Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Barathwaja, docs@python, pintman
Priority: normal Keywords:

Created on 2020-06-19 09:26 by pintman, last changed 2022-04-11 14:59 by admin.

Messages (3)
msg371860 - (view) Author: MarcoBakera (pintman) Date: 2020-06-19 09:26
The example given results in an error.

https://docs.python.org/3.8/library/locale.html?highlight=locale

>>> locale.setlocale(locale.LC_ALL, 'de_DE')

I could be improved with one of the following versions:

>>> locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8')
>>> locale.setlocale(locale.LC_ALL, ('de_DE'), ('UTF-8'))
msg375514 - (view) Author: Barathwaja (Barathwaja) * Date: 2020-08-16 16:15
Hi Marco,

Can I work on this?
msg375541 - (view) Author: MarcoBakera (pintman) Date: 2020-08-17 11:31
I have only reported the bug and do not know exactly how to proceed. I don't think there's anything wrong with taking over the bug.
History
Date User Action Args
2022-04-11 14:59:32adminsetgithub: 85204
2020-08-17 11:31:56pintmansetmessages: + msg375541
2020-08-16 16:15:25Barathwajasetnosy: + Barathwaja
messages: + msg375514
2020-06-19 09:26:58pintmancreate